CustomerFilterService
in package
implements
CustomerFilterService
Class CustomerFilterService
Interfaces, Classes and Traits
- CustomerFilterService
- Interface CustomerFilterService
Table of Contents
- $factory : CustomerFilterFactory
- $repository : CustomerRepository
- __construct() : mixed
- filterCustomers() : Customers
- Returns a filtered and paginated collection of customers based on the given filter and sorting arguments.
- getCustomersTotalCount() : int
- Returns total count of customers based on the given filter arguments.
Properties
$factory
private
CustomerFilterFactory
$factory
$repository
private
CustomerRepository
$repository
Methods
__construct()
public
__construct(CustomerRepository $repository, CustomerFilterFactory $factory) : mixed
Parameters
- $repository : CustomerRepository
- $factory : CustomerFilterFactory
Return values
mixed —filterCustomers()
Returns a filtered and paginated collection of customers based on the given filter and sorting arguments.
public
filterCustomers(array<string|int, mixed> $filters[, string|null $sorting = null ][, int $limit = 25 ], int $offset) : Customers
Parameters
- $filters : array<string|int, mixed>
- $sorting : string|null = null
- $limit : int = 25
- $offset : int
Tags
Return values
Customers —getCustomersTotalCount()
Returns total count of customers based on the given filter arguments.
public
getCustomersTotalCount(array<string|int, mixed> $filters) : int
Parameters
- $filters : array<string|int, mixed>