OrderItemFactory

Implements \OrderItemFactoryInterface

Class OrderItemFactory

category

System

package

Order

subpackage

Factories

Methods

Creates an OrderItem object.

createOrderItem(\StringType $name) : \OrderItem

Arguments

$name

\StringType

Order item name.

Response

\OrderItem

New order item instance.

Creates a StoredOrderItem object.

createStoredOrderItem(\IdType $orderItemId, \OrderItemInterface $orderItem = null) : \StoredOrderItem

Arguments

$orderItemId

\IdType

ID of order item.

$orderItem

\OrderItemInterface

(optional) When provided the object values will be used for the generation of the StoredOrderItemInstance.

Response

\StoredOrderItem

New stored order item instance.