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.

Created a stored order item property with data provided.

_createStoredOrderItemProperty(array $storedOrderItemPropertyData) : \StoredOrderItemProperty

Arguments

$storedOrderItemPropertyData

array

Order item property data.

Response

\StoredOrderItemProperty

Created stored order item property.

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

Order item property factory.

orderItemAttributeFactory : \OrderItemPropertyFactory

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Table.

table : string
var

Type(s)

string

ID column.

key : string
var

Type(s)

string