class UserFilterer extends AbstractFilterer

Traits

Properties

protected $filters from AbstractFilterer
protected $filterMutators from AbstractFilterer
protected UserRepository $users

Methods

applySort(FilterState $search, array $sort = null)

Apply sort criteria to a discussion search.

applyOffset(FilterState $search, int $offset)

No description

applyLimit(FilterState $search, int|null $limit)

No description

__construct(UserRepository $users, array $filters, array $filterMutators)

No description

Builder
getQuery(User $actor)

No description

filter(SearchCriteria $criteria, int $limit = null, int $offset = 0)

No description

Details

protected applySort(FilterState $search, array $sort = null)

Apply sort criteria to a discussion search.

Parameters

FilterState $search
array $sort

protected applyOffset(FilterState $search, int $offset)

Parameters

FilterState $search
int $offset

protected applyLimit(FilterState $search, int|null $limit)

Parameters

FilterState $search
int|null $limit

__construct(UserRepository $users, array $filters, array $filterMutators)

Parameters

UserRepository $users
array $filters
array $filterMutators

protected Builder getQuery(User $actor)

Parameters

User $actor

Return Value

Builder

SearchResults filter(SearchCriteria $criteria, int $limit = null, int $offset = 0)

Parameters

SearchCriteria $criteria
int $limit
int $offset

Return Value

SearchResults

Exceptions

InvalidArgumentException