OrderItemAttributeRepositoryWriter

Implements \OrderItemAttributeRepositoryWriterInterface

Class OrderItemAttributeRepositoryWriter

category

System

package

Order

subpackage

Repositories

Methods

OrderItemAttributeRepositoryWriter constructor.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Adds a new attribute to the order item.

insertIntoOrderItem(\IdType $orderItemId, \OrderItemAttribute $orderItemAttribute) : integer

Arguments

$orderItemId

\IdType

ID of the order item.

$orderItemAttribute

\OrderItemAttribute

Attribute to add.

Response

integer

ID of stored order item attribute.

Updates the stored order item attribute.

update(\StoredOrderItemAttribute $orderItemAttribute) : \OrderItemAttributeRepositoryWriter

Arguments

$orderItemAttribute

\StoredOrderItemAttribute

Order item attribute.

Response

\OrderItemAttributeRepositoryWriter

Same instance for method chaining.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Table.

table : string
var

Type(s)

string