Class OrderTotalRepository
Class OrderTotalRepository
- OrderTotalRepository implements OrderTotalRepositoryInterface
Package: Order\Repositories
Category: System
Located at Services/Core/Order/Repositories/OrderTotalRepository.inc.php
Category: System
Located at Services/Core/Order/Repositories/OrderTotalRepository.inc.php
Methods summary
public
__construct( OrderTotalRepositoryReader $orderTotalRepositoryReader, OrderTotalRepositoryWriter $orderTotalRepositoryWriter, OrderTotalRepositoryDeleter $orderTotalRepositoryDeleter )
OrderTotalRepository constructor.
public
addToOrder( IdType $orderId, OrderTotalInterface $orderTotal )
: integer
Adds an order total object to the order.
public
store( StoredOrderTotalInterface $orderTotal )
: OrderTotalRepository
Updates a stored order total object.
public
getTotalById( IdType $orderTotalId )
: StoredOrderTotal
Returns an order total object by the given ID.
public
getTotalsByOrderId( IdType $orderId )
: StoredOrderTotalCollection
Returns an collection of order total objects by the given order ID.
public
deleteTotalById( IdType $orderTotalId )
: OrderTotalRepository
Removes an order total by the given order total ID.
public
deleteTotalsByOrderId( IdType $orderId )
: OrderTotalRepository
Removes multiple order totals by the given order ID.
Properties summary
protected
$orderTotalRepositoryReader
: OrderTotalRepositoryReaderInterface
Order total repository reader.
protected
$orderTotalRepositoryWriter
: OrderTotalRepositoryWriterInterface
Order total repository writer.
protected
$orderTotalRepositoryDeleter
: OrderTotalRepositoryDeleterInterface