Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • OrderItemAttributeRepository
  • OrderItemAttributeRepositoryDeleter
  • OrderItemAttributeRepositoryReader
  • OrderItemAttributeRepositoryWriter
  • OrderItemPropertyRepository
  • OrderItemPropertyRepositoryDeleter
  • OrderItemPropertyRepositoryReader
  • OrderItemPropertyRepositoryWriter
  • OrderItemRepository
  • OrderItemRepositoryDeleter
  • OrderItemRepositoryReader
  • OrderItemRepositoryWriter
  • OrderRepository
  • OrderRepositoryDeleter
  • OrderRepositoryReader
  • OrderRepositoryWriter
  • OrderTotalRepository
  • OrderTotalRepositoryDeleter
  • OrderTotalRepositoryReader
  • OrderTotalRepositoryWriter

Class OrderTotalRepository

Class OrderTotalRepository

OrderTotalRepository implements OrderTotalRepositoryInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/OrderTotalRepository.inc.php

Methods summary

public
# __construct( OrderTotalRepositoryReader $orderTotalRepositoryReader, OrderTotalRepositoryWriter $orderTotalRepositoryWriter, OrderTotalRepositoryDeleter $orderTotalRepositoryDeleter )

OrderTotalRepository constructor.

OrderTotalRepository constructor.

Parameters

$orderTotalRepositoryReader
Order total repository reader.
$orderTotalRepositoryWriter
Order total repository writer.
$orderTotalRepositoryDeleter
Order total repository deleter.
public integer
# addToOrder( IdType $orderId, OrderTotalInterface $orderTotal )

Adds an order total object to the order.

Adds an order total object to the order.

Parameters

$orderId
ID of order.
$orderTotal
Order total object.

Returns

integer
ID of stored order total.

Implementation of

OrderTotalRepositoryInterface::addToOrder()
public OrderTotalRepository
# store( StoredOrderTotalInterface $orderTotal )

Updates a stored order total object.

Updates a stored order total object.

Parameters

$orderTotal
Order total.

Returns

OrderTotalRepository
Same instance for method chaining.

Implementation of

OrderTotalRepositoryInterface::store()
public StoredOrderTotal
# getTotalById( IdType $orderTotalId )

Returns an order total object by the given ID.

Returns an order total object by the given ID.

Parameters

$orderTotalId
ID of order total in database table.

Returns

StoredOrderTotal
Fetched order total.

Implementation of

OrderTotalRepositoryInterface::getTotalById()
public StoredOrderTotalCollection
# getTotalsByOrderId( IdType $orderId )

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

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

Parameters

$orderId
ID of the order in the database table.

Returns

StoredOrderTotalCollection
Fetched order total collection.

Implementation of

OrderTotalRepositoryInterface::getTotalsByOrderId()
public OrderTotalRepository
# deleteTotalById( IdType $orderTotalId )

Removes an order total by the given order total ID.

Removes an order total by the given order total ID.

Parameters

$orderTotalId
ID of order total in the database table.

Returns

OrderTotalRepository
Same instance for method chaining.

Implementation of

OrderTotalRepositoryInterface::deleteTotalById()
public OrderTotalRepository
# deleteTotalsByOrderId( IdType $orderId )

Removes multiple order totals by the given order ID.

Removes multiple order totals by the given order ID.

Parameters

$orderId
Order ID.

Returns

OrderTotalRepository
Same instance for method chaining.

Implementation of

OrderTotalRepositoryInterface::deleteTotalsByOrderId()

Properties summary

protected OrderTotalRepositoryReaderInterface $orderTotalRepositoryReader

Order total repository reader.

Order total repository reader.

#
protected OrderTotalRepositoryWriterInterface $orderTotalRepositoryWriter

Order total repository writer.

Order total repository writer.

#
protected OrderTotalRepositoryDeleterInterface $orderTotalRepositoryDeleter

Order total repository deleter.

Order total repository deleter.

#
API documentation generated by ApiGen