1 | <?php |
||
27 | class Query { |
||
28 | /** |
||
29 | * @var SearchPropertyDefinition[] |
||
30 | * |
||
31 | * The list of properties to be selected |
||
32 | */ |
||
33 | public $select; |
||
34 | /** |
||
35 | * @var Scope[] |
||
36 | * |
||
37 | * The collections to perform the search in |
||
38 | */ |
||
39 | public $from; |
||
40 | /** |
||
41 | * @var Operator |
||
42 | * |
||
43 | * The search operator, either a comparison ('gt', 'eq', ...) or a boolean operator ('and', 'or', 'not') |
||
44 | */ |
||
45 | public $where; |
||
46 | /** |
||
47 | * @var Order[] |
||
48 | * |
||
49 | * The list of order operations that should be used to order the results. |
||
50 | * |
||
51 | * Each order operations consists of a property to sort on and a sort direction. |
||
52 | * If more then one order operations are specified, the comparisons for ordering should |
||
53 | * be applied in the order that the order operations are defined in with the earlier comparisons being |
||
54 | * more significant. |
||
55 | */ |
||
56 | public $orderBy; |
||
57 | /** |
||
58 | * @var Limit |
||
59 | * |
||
60 | * The limit and offset for the search query |
||
61 | */ |
||
62 | public $limit; |
||
63 | |||
64 | /** |
||
65 | * Query constructor. |
||
66 | * @param SearchPropertyDefinition[] $select |
||
67 | * @param Scope[] $from |
||
68 | * @param Operator $where |
||
69 | * @param Order[] $orderBy |
||
70 | * @param Limit $limit |
||
71 | */ |
||
72 | public function __construct(array $select, array $from, Operator $where, array $orderBy, Limit $limit) { |
||
79 | } |
||
80 |