ParcelServiceReadService

Implements \ParcelServiceReadServiceInterface

Class ParcelServiceReadService

package

Default

Methods

ParcelServiceReadService constructor.

__construct(\ParcelServiceRepositoryInterface $repository) 

Arguments

Returns a limited collection of parcel services.

getAll(\Pager $pager) : \ParcelServiceCollection
Throws
\ParcelServiceCollectionNotFoundException

Arguments

$pager

\Pager

Response

\ParcelServiceCollection

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

getBy(\Pager $pager, \ParcelServiceSearchCondition $searchCondition) : \ParcelServiceCollection

Arguments

$pager

\Pager

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