OrderStatusFactory

Implements \OrderStatusFactoryInterface

Class OrderStatusFactory

category

System

package

OrderStatus

subpackage

Factories

Methods

Creates a new instance of order status.

createOrderStatus(\IntType $orderStatusId = null) : \OrderStatus

Arguments

$orderStatusId

\IntType

(Optional) Id of order status entity to be created.

Response

\OrderStatus

Order status entity.

Creates a new instance of an order status collection.

createOrderStatusCollection(array<mixed,\OrderStatus> $orderStatuses) : \OrderStatusCollection

Arguments

$orderStatuses

array<mixed,\OrderStatus>

Array with all order status items of the created collection.

Response

\OrderStatusCollection

Collected order status entities.