OrderItemRepositoryWriter

Implements \OrderItemRepositoryWriterInterface

Class OrderItemRepositoryWriter

category

System

package

Order

subpackage

Repositories

Methods

OrderItemRepositoryWriter constructor.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Inserts an order item to an order by the given order ID.

insertIntoOrder(\IdType $orderId, \OrderItemInterface $orderItem) : integer

Arguments

$orderId

\IdType

ID of the order.

$orderItem

\OrderItemInterface

Order item to insert.

Response

integer

ID of inserted item.

Update the passed order item.

update(\StoredOrderItemInterface $orderItem) : \OrderItemRepositoryWriter

Arguments

$orderItem

\StoredOrderItemInterface

Order item to update.

Response

\OrderItemRepositoryWriter

Same instance for method chaining.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder