Class OrderRepositoryWriter

Class OrderRepositoryWriter

OrderRepositoryWriter implements OrderRepositoryWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db )

OrderRepositoryWriter constructor

public insert( OrderInterface $order ) : integer

Inserts a new order to the orders table.

public update( OrderInterface $order ) : OrderRepositoryWriter

Updates an existing order in the orders table.

protected _serializeOrder( OrderInterface $order ) : array

Converts the order to an associative array that is later used to insert/update the values into the database.

protected _serializeAddressBlock( AddressBlockInterface $addressBlock, StringType $prefix ) : array

Serializes address block.

Properties summary

protected $db : CI_DB_query_builder

Query builder.