- WIP on search request handling of operators
This commit is contained in:
1 parent
2271b0b034
commit
cb125545c7
6 files changed
+60
-29
No files matched your search
@@ -5,6 +5,16 @@ namespace Ulmus\SearchRequest;
|
||||
use Ulmus\Repository;
|
||||
|
||||
interface SearchRequestInterface {
|
||||
|
||||
/* HOW TO IMPLEMENT THIS !!? */
|
||||
public const SEARCH_REQUEST_OPERATORS = "searchRequest:operators";
|
||||
public const SEARCH_REQUEST_OPERATOR_EQUAL = "=";
|
||||
public const SEARCH_REQUEST_OPERATOR_NOT_EQUAL = "!=";
|
||||
public const SEARCH_REQUEST_OPERATOR_GREATER_THAN = ">";
|
||||
public const SEARCH_REQUEST_OPERATOR_GREATER_OR_EQUAL_THAN = ">=";
|
||||
public const SEARCH_REQUEST_OPERATOR_SMALLER_THAN = "<";
|
||||
public const SEARCH_REQUEST_OPERATOR_SMALLER_OR_EQUAL_THAN = "<=";
|
||||
|
||||
public function filter(Repository $repository) : Repository;
|
||||
|
||||
public function wheres() : iterable;
|
||||
|
||||
Reference in new issue
Block a user