OrderItemAttributeRepositoryInterface

Extends

Interface OrderItemAttributeRepositoryInterface

category

System

package

Order

subpackage

Interfaces

Methods

Adds an attribute to an order item.

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

Arguments

$orderItemId

\IdType

ID of the order item.

$orderItemAttribute

\OrderItemAttributeInterface

Order item attribute to add.

Response

integer

ID of stored order item attribute.

Deletes an item attribute by the given item attribute ID.

deleteItemAttributeById(\IdType $orderItemAttributeId) : \OrderItemAttributeRepositoryInterface

Arguments

$orderItemAttributeId

\IdType

ID of order item attribute.

Response

\OrderItemAttributeRepositoryInterface

Same instance for method chaining.

Deletes an item attribute by the given order item ID.

deleteItemAttributesByOrderItemId(\IdType $orderItemId) : \OrderItemAttributeRepositoryInterface

Arguments

$orderItemId

\IdType

ID of order item.

Response

\OrderItemAttributeRepositoryInterface

Same instance for method chaining.

Returns a stored attribute by the given ID.

getItemAttributeById(\IdType $orderItemAttributeId) : \StoredOrderItemAttributeInterface

Arguments

$orderItemAttributeId

\IdType

ID of item attribute.

Response

\StoredOrderItemAttributeInterface

Stored attribute.

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

getItemAttributesByOrderItemId(\IdType $orderItemId) : \StoredOrderItemAttributeCollection

Arguments

$orderItemId

\IdType

ID of order item.

Response

\StoredOrderItemAttributeCollection

Stored item attribute collection.

Saves the attribute to the repository.

store(\StoredOrderItemAttributeInterface $orderItemAttribute) : \OrderItemAttributeRepositoryInterface

Arguments

$orderItemAttribute

\StoredOrderItemAttributeInterface

Attribute to save.

Response

\OrderItemAttributeRepositoryInterface

Same instance for method chaining.