Closed dvdheiden closed 1 year ago
Closes #17
Improve the usability of filtering the data:
$listFilter = Cluster::listFilter() ->filter(new FilterEntry('name', 'test')) ->filter(new FilterEntry('groups', 'test2')) ->sort(new SortEntry('name', Sort::DESC));
But the original way still works:
$listFilter = ListFilter::forModel(new Cluster()) ->addFilter('name', 'test') ->addFilter('groups', 'test2') ->addSort('name', Sort::DESC);
Or combine those:
$listFilter = Cluster::listFilter() ->addFilter('name', 'test') ->addFilter('groups', 'test2') ->addSort('name', Sort::DESC);
SORT_*
ListFilter
Enums\Sort
Client.php
Closes #17
Changes
Improve the usability of filtering the data:
But the original way still works:
Or combine those:
Changed
SORT_*
constants of theListFilter
are moved to a separate Enum, seeEnums\Sort
.Checks
Client.php