phpDocumentor

OrderRepository
in package
implements OrderRepositoryInterface

Class OrderRepository

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

OrderRepositoryInterface
Interface OrderRepositoryInterface

Table of Contents

$addonValueService  : AddonValueServiceInterface
Addon value service.
$deleter  : OrderRepositoryDeleterInterface
Order repository deleter.
$orderFactory  : OrderFactoryInterface
Order factory.
$orderItemRepository  : OrderItemRepositoryInterface
Order item repository.
$orderStatusHistoryReader  : OrderStatusHistoryStorage
Order status history reader.
$orderTotalRepository  : OrderTotalRepositoryInterface
Order total repository.
$reader  : OrderRepositoryReaderInterface
Order repository reader.
$writer  : OrderRepositoryWriterInterface
Order repository writer.
__construct()  : mixed
OrderRepository constructor.
createNew()  : GXEngineOrder
Creates a new order with no values in the database and returns it containing just the ID.
deleteById()  : OrderRepository
Deletes an order by the ID.
getById()  : GXEngineOrder
Returns an order by given ID.
store()  : OrderRepository
Saves an Order to the database.

Properties

Methods

__construct()

OrderRepository constructor.

public __construct(OrderFactoryInterface $orderFactory, OrderRepositoryWriterInterface $writer, OrderRepositoryReaderInterface $reader, OrderRepositoryDeleterInterface $deleter, OrderItemRepositoryInterface $orderItemRepository, OrderTotalRepositoryInterface $orderTotalRepository, OrderStatusHistoryReaderInterface $historyReader, AddonValueServiceInterface $addonValueService) : mixed
Parameters
$orderFactory : OrderFactoryInterface

Factory to create order objects.

$writer : OrderRepositoryWriterInterface

Order repository writer.

$reader : OrderRepositoryReaderInterface

Order repository reader.

$deleter : OrderRepositoryDeleterInterface

Order repository deleter.

$orderItemRepository : OrderItemRepositoryInterface

Repository for order items.

$orderTotalRepository : OrderTotalRepositoryInterface

Repository for order totals.

$historyReader : OrderStatusHistoryReaderInterface

Reader for order status history items.

$addonValueService : AddonValueServiceInterface

AddonValueService to handle the order addon values.

Return values
mixed

Search results