ParcelServiceReadService
in package
implements
ParcelServiceReadServiceInterface
Class ParcelServiceReadService
Interfaces, Classes and Traits
- ParcelServiceReadServiceInterface
- Interface ParcelServiceReadService
Table of Contents
- $repository : ParcelServiceRepositoryInterface
- __construct() : mixed
- ParcelServiceReadService constructor.
- getAll() : ParcelServiceCollection
- Returns a limited collection of parcel services.
- getBy() : ParcelServiceCollection
- Returns a collection of parcel services found be the given limited search condition.
- getById() : ParcelServiceInterface
- Returns a parcel service identified by its ID.
Properties
$repository
protected
ParcelServiceRepositoryInterface
$repository
Methods
__construct()
ParcelServiceReadService constructor.
public
__construct(ParcelServiceRepositoryInterface $repository) : mixed
Parameters
- $repository : ParcelServiceRepositoryInterface
Return values
mixed —getAll()
Returns a limited collection of parcel services.
public
getAll([Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : ParcelServiceCollection
Parameters
- $pager : Pager|null = null
-
(Optional) Pager object with pagination information
- $sorters : array<string|int, mixed> = []
-
(Optional) array of Sorter objects with data sorting information
Tags
Return values
ParcelServiceCollection —getBy()
Returns a collection of parcel services found be the given limited search condition.
public
getBy(ParcelServiceSearchCondition $searchCondition[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : ParcelServiceCollection
Parameters
- $searchCondition : ParcelServiceSearchCondition
- $pager : Pager|null = null
-
(Optional) Pager object with pagination information
- $sorters : array<string|int, mixed> = []
-
(Optional) array of Sorter objects with data sorting information
Return values
ParcelServiceCollection —getById()
Returns a parcel service identified by its ID.
public
getById(ParcelServiceId $parcelServiceId) : ParcelServiceInterface
Parameters
- $parcelServiceId : ParcelServiceId