OrderObjectService
in package
implements
OrderObjectServiceInterface
Class OrderObjectService
Tags
Interfaces, Classes and Traits
- OrderObjectServiceInterface
- Interface OrderObjectServiceInterface
Table of Contents
- $orderItemAttributeFactory : OrderItemAttributeFactoryInterface
- $orderItemFactory : OrderItemFactoryInterface
- $orderItemPropertyFactory : OrderItemPropertyFactoryInterface
- $orderTotalFactory : OrderTotalFactoryInterface
- __construct() : mixed
- OrderObjectService Constructor
- createOrderItemAttributeObject() : OrderItemAttribute
- Create Order Item Attribute Object
- createOrderItemObject() : OrderItemInterface
- Create Order Item Object
- createOrderItemPropertyObject() : OrderItemPropertyInterface
- Create Order Item Property Object
- createOrderTotalObject() : OrderTotalInterface
- Create Order Total Object
- createStoredOrderItemAttributeObject() : StoredOrderItemAttributeInterface
- Create Stored Order Item Attribute Object
- createStoredOrderItemObject() : StoredOrderItemInterface
- Create Stored Order Item Object
- createStoredOrderItemPropertyObject() : StoredOrderItemPropertyInterface
- Create Stored Order Item Property Object
- createStoredOrderTotalObject() : StoredOrderTotalInterface
- Create Stored Order Total Object
Properties
$orderItemAttributeFactory
protected
OrderItemAttributeFactoryInterface
$orderItemAttributeFactory
$orderItemFactory
protected
OrderItemFactoryInterface
$orderItemFactory
$orderItemPropertyFactory
protected
OrderItemPropertyFactoryInterface
$orderItemPropertyFactory
$orderTotalFactory
protected
OrderTotalFactoryInterface
$orderTotalFactory
Methods
__construct()
OrderObjectService Constructor
public
__construct(OrderItemFactoryInterface $orderItemFactory, OrderItemAttributeFactoryInterface $orderItemAttributeFactory, OrderItemAttributeFactoryInterface $orderItemPropertyFactory, OrderTotalFactoryInterface $orderTotalFactory) : mixed
Parameters
- $orderItemFactory : OrderItemFactoryInterface
- $orderItemAttributeFactory : OrderItemAttributeFactoryInterface
- $orderItemPropertyFactory : OrderItemAttributeFactoryInterface
- $orderTotalFactory : OrderTotalFactoryInterface
Return values
mixed —createOrderItemAttributeObject()
Create Order Item Attribute Object
public
createOrderItemAttributeObject(StringType $name, StringType $value) : OrderItemAttribute
Creates and returns an order item attribute object.
Parameters
- $name : StringType
-
Name of the order item object attribute to be created.
- $value : StringType
-
Value of the order item object attribute to be created.
Return values
OrderItemAttribute —createOrderItemObject()
Create Order Item Object
public
createOrderItemObject(StringType $name) : OrderItemInterface
Creates and returns an order item object.
Parameters
- $name : StringType
-
Name of the order item object to be created.
Return values
OrderItemInterface —createOrderItemPropertyObject()
Create Order Item Property Object
public
createOrderItemPropertyObject(StringType $name, StringType $value) : OrderItemPropertyInterface
Creates and returns an order item property object.
Parameters
- $name : StringType
-
Name of the order item object property to be created.
- $value : StringType
-
Value of the orreturn $this->orderItemAttributeFactory->createOrderItemAttribute($name, $value);der item object property to be created.
Return values
OrderItemPropertyInterface —createOrderTotalObject()
Create Order Total Object
public
createOrderTotalObject(StringType $title, DecimalType $value[, StringType $valueText = null ][, StringType $class = null ][, IntType $sortOrder = null ]) : OrderTotalInterface
Creates and returns an order total object.
Parameters
- $title : StringType
-
Title of the order total to be created.
- $value : DecimalType
-
value of the order total to be created.
- $valueText : StringType = null
-
Value text of the order total to be created.
- $class : StringType = null
-
Class of the order total to be created.
- $sortOrder : IntType = null
-
Sort order of the order total to be created.
Return values
OrderTotalInterface —createStoredOrderItemAttributeObject()
Create Stored Order Item Attribute Object
public
createStoredOrderItemAttributeObject(IdType $orderItemAttributeId) : StoredOrderItemAttributeInterface
Creates and returns a stored order item attribute object.
Parameters
- $orderItemAttributeId : IdType
-
Order item attribute id of the order item attribute to be stored.
Return values
StoredOrderItemAttributeInterface —createStoredOrderItemObject()
Create Stored Order Item Object
public
createStoredOrderItemObject(IdType $orderItemId) : StoredOrderItemInterface
Creates and returns a stored order item object.
Parameters
- $orderItemId : IdType
-
Order item id of the order item to be stored.
Return values
StoredOrderItemInterface —createStoredOrderItemPropertyObject()
Create Stored Order Item Property Object
public
createStoredOrderItemPropertyObject(IdType $orderItemPropertyId) : StoredOrderItemPropertyInterface
Creates and returns a stored order item property object.
Parameters
- $orderItemPropertyId : IdType
-
Order property id of the order item property to be stored.
Return values
StoredOrderItemPropertyInterface —createStoredOrderTotalObject()
Create Stored Order Total Object
public
createStoredOrderTotalObject(IdType $orderTotalId) : StoredOrderTotalInterface
Creates and returns a stored order total object.
Parameters
- $orderTotalId : IdType
-
Order total id of the order total to be stored.