OrderItemPropertyRepository

Implements \OrderItemAttributeRepositoryInterface

Class OrderItemPropertyRepository

category

System

package

Order

subpackage

Repositories

Methods

OrderItemPropertyRepository constructor.

__construct(\OrderItemPropertyRepositoryReaderInterface $reader, \OrderItemPropertyRepositoryWriterInterface $writer, \OrderItemPropertyRepositoryDeleterInterface $deleter) 

Arguments

$reader

\OrderItemPropertyRepositoryReaderInterface

Order item property repository reader.

$writer

\OrderItemPropertyRepositoryWriterInterface

Order item property repository writer.

$deleter

\OrderItemPropertyRepositoryDeleterInterface

Order item property repository deleter.

Adds an attribute to an order item.

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

Arguments

$orderItemId

\IdType

ID of the order item.

$orderItemProperty

\OrderItemAttributeInterface

Order item attribute to add.

Response

integer

ID of stored order item attribute.

Deletes an item property by the given item property ID.

deleteItemAttributeById(\IdType $orderItemAttributeId) : \OrderItemPropertyRepository

Arguments

$orderItemAttributeId

\IdType

ID of order item property.

Response

\OrderItemPropertyRepository

Same instance for method chaining.

Deletes an item property by the given order item ID.

deleteItemAttributesByOrderItemId(\IdType $orderItemId) : \OrderItemPropertyRepository

Arguments

$orderItemId

\IdType

ID of order item.

Response

\OrderItemPropertyRepository

Same instance for method chaining.

Returns a stored property by the given ID.

getItemAttributeById(\IdType $orderItemPropertyId) : \StoredOrderItemAttributeInterface

Arguments

$orderItemPropertyId

\IdType

ID of item property.

Response

\StoredOrderItemAttributeInterface

Stored property.

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

getItemAttributesByOrderItemId(\IdType $orderItemId) : \StoredOrderItemAttributeCollection

Arguments

$orderItemId

\IdType

ID of order item.

Response

\StoredOrderItemAttributeCollection

Stored item property collection.

Saves the attribute to the repository.

store(\StoredOrderItemAttributeInterface $orderItemProperty) : \OrderItemPropertyRepository

Arguments

$orderItemProperty

\StoredOrderItemAttributeInterface

Property to save.

Response

\OrderItemPropertyRepository

Same instance for method chaining.

Properties

Order item property repository reader.

reader : \OrderItemPropertyRepositoryReaderInterface

Order item property repository writer.

writer : \OrderItemPropertyRepositoryWriterInterface

Order item property repository deleter.

deleter : \OrderItemPropertyRepositoryDeleterInterface