Class OrderStatusHistoryStorage

Class OrderStatusHistoryStorage

OrderStatusHistoryStorage implements OrderStatusHistoryReaderInterface, OrderStatusHistoryWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db )

OrderStatusHistoryStorage constructor.

public getStatusHistory( IdType $orderId ) : OrderStatusHistoryListItemCollection

Returns a collection of order status history items by the given order item id.

public addStatusUpdate( IdType $orderId, IntType $newOrderStatusId, StringType $comment, BoolType $customerNotified, IdType $customerId = null )

Adds an order status history item.

public deleteHistory( IdType $orderId )

Deletes all order status history items which are associated with the given order item id.

Properties summary

protected $db : CI_DB_query_builder