OrderRepositoryWriter

Implements \OrderRepositoryWriterInterface

Class OrderRepositoryWriter

category

System

package

Order

subpackage

Repositories

Methods

OrderRepositoryWriter constructor

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Inserts a new order to the orders table.

insert(\OrderInterface $order) : integer

Arguments

$order

\OrderInterface

Order.

Response

integer

ID of inserted order.

Updates an existing order in the orders table.

update(\OrderInterface $order) : \OrderRepositoryWriter

Arguments

$order

\OrderInterface

Order object.

Response

\OrderRepositoryWriter

Same instance for method chaining.

Properties