GXParcelServiceReader

Implements \ParcelServiceReaderInterface

Class ParcelServiceReader

package

Default

Methods

GXParcelServiceReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

_prepareParcelData

_prepareParcelData(array $parcelData) 

Arguments

$parcelData

array

_prepareParcelServicesData

_prepareParcelServicesData(array $parcelServicesData) 

Arguments

$parcelServicesData

array

Returns all parcel services limited by given limit and offset.

fetchAll(\IntType $limit, \IntType $offset) : array

Arguments

$limit

\IntType

$offset

\IntType

Response

array

Returns the parcel service search result limited by given limit and offset as an array.

fetchBy(\IntType $limit, \IntType $offset, \StringType $searchCondition) : array

Arguments

$limit

\IntType

$offset

\IntType

$searchCondition

\StringType

Response

array

Returns a parcel service as an array identified by its ID.

fetchById(\ParcelServiceId $parcelServiceId) : array

Arguments

$parcelServiceId

\ParcelServiceId

Response

array

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder