OrderItemAttributeRepositoryReader

Implements \OrderItemAttributeRepositoryReaderInterface

Class OrderItemAttributeRepositoryReader

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 attribute factory.

Creates a stored order item attribute with data provided.

_createStoredOrderItemAttribute(array $storedOrderItemAttributeData) : \StoredOrderItemAttribute

Arguments

$storedOrderItemAttributeData

array

Order item attribute data.

Response

\StoredOrderItemAttribute

Crated stored order item attribute.

Returns an order item attribute by the given ID.

getAttributeById(\IdType $orderItemAttributeId) : \StoredOrderItemAttributeInterface
Throws
\UnexpectedValueException

If no order item attribute recors matches the provided $orderItemAttributeId

Arguments

$orderItemAttributeId

\IdType

ID of order item attribute.

Response

\StoredOrderItemAttributeInterface

Fetched order item attribute.

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

getAttributesByOrderItemId(\IdType $orderItemId) : \StoredOrderItemAttributeCollection

Arguments

$orderItemId

\IdType

ID of the order item.

Response

\StoredOrderItemAttributeCollection

Fetched order item attribute collection.

Properties

Order item attribute factory.

orderItemAttributeFactory : \OrderItemAttributeFactory

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