Class OrderItemPropertyRepository

Class OrderItemPropertyRepository

OrderItemPropertyRepository implements OrderItemAttributeRepositoryInterface

Methods summary

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

OrderItemPropertyRepository constructor.

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

Adds an attribute to an order item.

public store( StoredOrderItemAttributeInterface $orderItemProperty ) : OrderItemPropertyRepository

Saves the attribute to the repository.

public getItemAttributeById( IdType $orderItemPropertyId ) : StoredOrderItemAttributeInterface

Returns a stored property by the given ID.

public getItemAttributesByOrderItemId( IdType $orderItemId ) : StoredOrderItemAttributeCollection

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

public deleteItemAttributeById( IdType $orderItemAttributeId ) : OrderItemPropertyRepository

Deletes an item property by the given item property ID.

public deleteItemAttributesByOrderItemId( IdType $orderItemId ) : OrderItemPropertyRepository

Deletes an item property by the given order item ID.

Properties summary

protected $reader : OrderItemPropertyRepositoryReaderInterface

Order item property repository reader.


		
protected $writer : OrderItemPropertyRepositoryWriterInterface

Order item property repository writer.


		
protected $deleter : OrderItemPropertyRepositoryDeleterInterface

Order item property repository deleter.