ParcelServiceReadService

Implements \ParcelServiceReadServiceInterface

Class ParcelServiceReadService

package

Default

Methods

ParcelServiceReadService constructor.

__construct(\ParcelServiceRepositoryInterface $repository) 

Arguments

Returns a limited collection of parcel services.

getAll(\Pager|null $pager = null, array $sorters = array()) : \ParcelServiceCollection
Throws
\ParcelServiceCollectionNotFoundException

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ParcelServiceCollection

Returns a collection of parcel services found be the given limited search condition.

getBy(\ParcelServiceSearchCondition $searchCondition, \Pager|null $pager = null, array $sorters = array()) : \ParcelServiceCollection

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ParcelServiceCollection

Returns a parcel service identified by its ID.

getById(\ParcelServiceId $parcelServiceId) : \ParcelServiceInterface
Throws
\ParcelServiceNotFoundException

If parcel service not found.

Arguments

$parcelServiceId

\ParcelServiceId

Response

\ParcelServiceInterface

Properties

repository

repository : \ParcelServiceRepositoryInterface