ParcelServiceFilterService
in package
implements
ParcelServiceFilterService
Class ParcelServiceService
Interfaces, Classes and Traits
- ParcelServiceFilterService
- Interface ParcelServiceFilterService
Table of Contents
- $factory : ParcelServiceFilterFactory
- $repository : ParcelServiceRepository
- __construct() : mixed
- ParcelServiceFilterService constructor.
- filterParcelServices() : ParcelServices
- Returns a filtered and paginated collection of parcel services based on the given filter and sorting arguments.
- getParcelServicesTotalCount() : int
- Returns total count of parcel services based on the given filter arguments.
Properties
$factory
private
ParcelServiceFilterFactory
$factory
$repository
private
ParcelServiceRepository
$repository
Methods
__construct()
ParcelServiceFilterService constructor.
public
__construct(ParcelServiceRepository $repository, ParcelServiceFilterFactory $factory) : mixed
Parameters
- $repository : ParcelServiceRepository
- $factory : ParcelServiceFilterFactory
Return values
mixed —filterParcelServices()
Returns a filtered and paginated collection of parcel services based on the given filter and sorting arguments.
public
filterParcelServices(array<string|int, mixed> $filters[, string|null $sorting = null ][, int $limit = 25 ], int $offset) : ParcelServices
Parameters
- $filters : array<string|int, mixed>
- $sorting : string|null = null
- $limit : int = 25
- $offset : int
Tags
Return values
ParcelServices —getParcelServicesTotalCount()
Returns total count of parcel services based on the given filter arguments.
public
getParcelServicesTotalCount(array<string|int, mixed> $filters) : int
Parameters
- $filters : array<string|int, mixed>