phpDocumentor

OrderObjectService
in package
implements OrderObjectServiceInterface

Class OrderObjectService

Tags
category

System

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

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

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

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

Search results