OrderTotalRepository

Implements \OrderTotalRepositoryInterface

Class OrderTotalRepository

category

System

package

Order

subpackage

Repositories

Methods

OrderTotalRepository constructor.

__construct(\OrderTotalRepositoryReader $orderTotalRepositoryReader, \OrderTotalRepositoryWriter $orderTotalRepositoryWriter, \OrderTotalRepositoryDeleter $orderTotalRepositoryDeleter) 

Arguments

$orderTotalRepositoryReader

\OrderTotalRepositoryReader

Order total repository reader.

$orderTotalRepositoryWriter

\OrderTotalRepositoryWriter

Order total repository writer.

$orderTotalRepositoryDeleter

\OrderTotalRepositoryDeleter

Order total repository deleter.

Adds an order total object to the order.

addToOrder(\IdType $orderId, \OrderTotalInterface $orderTotal) : integer

Arguments

$orderId

\IdType

ID of order.

$orderTotal

\OrderTotalInterface

Order total object.

Response

integer

ID of stored order total.

Removes an order total by the given order total ID.

deleteTotalById(\IdType $orderTotalId) : \OrderTotalRepository

Arguments

$orderTotalId

\IdType

ID of order total in the database table.

Response

\OrderTotalRepository

Same instance for method chaining.

Removes multiple order totals by the given order ID.

deleteTotalsByOrderId(\IdType $orderId) : \OrderTotalRepository

Arguments

$orderId

\IdType

Order ID.

Response

\OrderTotalRepository

Same instance for method chaining.

Returns an order total object by the given ID.

getTotalById(\IdType $orderTotalId) : \StoredOrderTotal

Arguments

$orderTotalId

\IdType

ID of order total in database table.

Response

\StoredOrderTotal

Fetched order total.

Returns an collection of order total objects by the given order ID.

getTotalsByOrderId(\IdType $orderId) : \StoredOrderTotalCollection

Arguments

$orderId

\IdType

ID of the order in the database table.

Response

\StoredOrderTotalCollection

Fetched order total collection.

Updates a stored order total object.

store(\StoredOrderTotalInterface $orderTotal) : \OrderTotalRepository

Arguments

$orderTotal

\StoredOrderTotalInterface

Order total.

Response

\OrderTotalRepository

Same instance for method chaining.

Properties

Order total repository reader.

orderTotalRepositoryReader : \OrderTotalRepositoryReaderInterface

Order total repository writer.

orderTotalRepositoryWriter : \OrderTotalRepositoryWriterInterface

#Order total repository deleter.

orderTotalRepositoryDeleter : \OrderTotalRepositoryDeleterInterface