OrderItemPropertyRepositoryWriter

Implements \OrderItemPropertyRepositoryWriterInterface

Class OrderItemPropertyRepositoryWriter

category

System

package

Order

subpackage

Repositories

Methods

OrderItemPropertyRepositoryWriter constructor.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Adds a new property to the order item.

insertIntoOrderItem(\IdType $orderItemId, \OrderItemProperty $orderItemProperty) : integer

Arguments

$orderItemId

\IdType

ID of the order item.

$orderItemProperty

\OrderItemProperty

Property to add.

Response

integer

ID of stored order item property.

Updates the stored order item property.

update(\StoredOrderItemProperty $orderItemProperty) : \OrderItemPropertyRepositoryWriter

Arguments

$orderItemProperty

\StoredOrderItemProperty

Order item property.

Response

\OrderItemPropertyRepositoryWriter

Same instance for method chaining.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder