phpDocumentor

CustomerSearchService 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

Methods

getSearchedCustomerTotalCount()

Returns total count of customers based on the given search object.

public getSearchedCustomerTotalCount(string $searchTerm) : int
Parameters
$searchTerm : string
Tags
inheritDoc
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
Tags
inheritDoc
Return values
Customers

Search results