OrderItemAttributeRepository

Implements \OrderItemAttributeRepositoryInterface

Class OrderItemAttributeRepository

category

System

package

Order

subpackage

Repositories

Methods

OrderItemAttributeRepository constructor.

__construct(\OrderItemAttributeRepositoryReaderInterface $reader, \OrderItemAttributeRepositoryWriterInterface $writer, \OrderItemAttributeRepositoryDeleterInterface $deleter) 

Arguments

$reader

\OrderItemAttributeRepositoryReaderInterface

Order item attribute repository reader.

$writer

\OrderItemAttributeRepositoryWriterInterface

Order item attribute repository writer.

$deleter

\OrderItemAttributeRepositoryDeleterInterface

Order item attribute repository deleter.

Adds an attribute to an order item.

addToOrderItem(\IdType $orderItemId, \OrderItemAttributeInterface $orderItemAttribute) : integer

Arguments

$orderItemId

\IdType

ID of the order item.

$orderItemAttribute

\OrderItemAttributeInterface

Order item attribute to add.

Response

integer

ID of stored order item attribute.

Deletes an item attribute by the given item attribute ID.

deleteItemAttributeById(\IdType $orderItemAttributeId) : \OrderItemAttributeRepository

Arguments

$orderItemAttributeId

\IdType

ID of order item attribute.

Response

\OrderItemAttributeRepository

Same instance for method chaining.

Deletes an item attribute by the given order item ID.

deleteItemAttributesByOrderItemId(\IdType $orderItemId) : \OrderItemAttributeRepository

Arguments

$orderItemId

\IdType

ID of order item.

Response

\OrderItemAttributeRepository

Same instance for method chaining.

Returns a stored attribute by the given ID.

getItemAttributeById(\IdType $orderItemAttributeId) : \StoredOrderItemAttributeInterface

Arguments

$orderItemAttributeId

\IdType

ID of item attribute.

Response

\StoredOrderItemAttributeInterface

Stored attribute.

Returns a stored attribute collection by the given order item ID.

getItemAttributesByOrderItemId(\IdType $orderItemId) : \StoredOrderItemAttributeCollection

Arguments

$orderItemId

\IdType

ID of order item.

Response

\StoredOrderItemAttributeCollection

Stored item attribute collection.

Saves the attribute to the repository.

store(\StoredOrderItemAttributeInterface $orderItemAttribute) : \OrderItemAttributeRepositoryInterface

Arguments

$orderItemAttribute

\StoredOrderItemAttributeInterface

Attribute to save.

Response

\OrderItemAttributeRepositoryInterface

Same instance for method chaining.

Properties

Order item attribute repository writer.

writer : \OrderItemAttributeRepositoryWriterInterface

Order item attribute repository reader.

reader : \OrderItemAttributeRepositoryReaderInterface

Order item attribute repository deleter.

deleter : \OrderItemAttributeRepositoryDeleterInterface