OrderRepositoryReader

Implements \OrderRepositoryReaderInterface

Class OrderRepositoryReader

category

System

package

Order

subpackage

Repositories

Methods

OrderRepositoryReader constructor.

__construct(\CI_DB_query_builder $db, \OrderFactoryInterface $orderFactory, \CountryServiceInterface $countryService, \PaymentTitleProvider $paymentTitleProvider) 

Arguments

$db

\CI_DB_query_builder

Query builder.

$orderFactory

\OrderFactoryInterface

Order factory.

$countryService

\CountryServiceInterface

Country service.

$paymentTitleProvider

\PaymentTitleProvider

Payment title provider.

Fetches an new order object from the orders table by the given ID.

getById(\IdType $orderId) : \GXEngineOrder
Throws
\UnexpectedValueException

If no entry has been found.

Arguments

$orderId

\IdType

ID of the expected order.

Response

\GXEngineOrder

Fetched order.

Properties