CustomerSearchService
in package
implements
CustomerSearchService
Class CustomerSearchService
Interfaces, Classes and Traits
- CustomerSearchService
- Interface CustomerSearchService
Table of Contents
- $factory : CustomerFilterFactory
- $repository : CustomerRepository
- __construct() : mixed
- getSearchedCustomerTotalCount() : int
- Returns total count of customers based on the given search object.
- searchCustomers() : Customers
- Returns a paginated collection of customers based on the given search term and sorting arguments.
Properties
$factory
private
CustomerFilterFactory
$factory
$repository
private
CustomerRepository
$repository
Methods
__construct()
public
__construct(CustomerFilterFactory $factory, CustomerRepository $repository) : mixed
Parameters
- $factory : CustomerFilterFactory
- $repository : CustomerRepository
Return values
mixed —getSearchedCustomerTotalCount()
Returns total count of customers based on the given search object.
public
getSearchedCustomerTotalCount(string $searchTerm) : int
Parameters
- $searchTerm : string
Tags
Return values
int —searchCustomers()
Returns a paginated collection of customers based on the given search term and sorting arguments.
public
searchCustomers(string $searchTerm[, string|null $sorting = null ][, int $limit = 25 ], int $offset) : Customers
Parameters
- $searchTerm : string
- $sorting : string|null = null
- $limit : int = 25
- $offset : int