Class OrderRepositoryReader

Class OrderRepositoryReader

OrderRepositoryReader implements OrderRepositoryReaderInterface

Methods summary

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

OrderRepositoryReader constructor.

public getById( IdType $orderId ) : GXEngineOrder

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

protected _createOrderByArray( array $data ) : GXEngineOrder

Creates an order instance.

protected _getOrderAddressBlock( array $data, StringType $prefix ) : AddressBlock

Returns order address block instance for the customer, billing and delivery address.

protected _createOrderPaymentType( array $row ) : OrderPaymentType

Creates and returns an order payment type instance by the given row data.

Properties summary

protected $db : CI_DB_query_builder

Query builder.


		
protected $orderFactory : OrderFactory

Order factory.


		
protected $countryService : CountryServiceInterface

Country service.