OrderItemPropertyRepositoryReader

Implements \OrderItemPropertyRepositoryReaderInterface

Class OrderItemPropertyRepositoryReader

category

System

package

Order

subpackage

Repositories

Methods

OrderItemPropertyRepositoryReader constructor.

__construct(\CI_DB_query_builder $db, \OrderItemAttributeFactoryInterface $orderItemAttributeFactory) 

Arguments

$db

\CI_DB_query_builder

Query builder.

$orderItemAttributeFactory

\OrderItemAttributeFactoryInterface

Order item property factory.

Returns a collection of order item properties by the given order item ID.

getPropertiesByOrderItemId(\IdType $orderItemId) : \StoredOrderItemAttributeCollection

Arguments

$orderItemId

\IdType

ID of the order item.

Response

\StoredOrderItemAttributeCollection

Fetched order item attribute collection.

Returns an order item property by the given ID.

getPropertyById(\IdType $orderItemPropertyId) : \StoredOrderItemProperty
Throws
\UnexpectedValueException

If no entry has been found.

Arguments

$orderItemPropertyId

\IdType

ID of order item property.

Response

\StoredOrderItemProperty

Fetched order item property.

Properties