1 | <?php |
||
8 | class Criteria |
||
9 | { |
||
10 | /** |
||
11 | * $actions. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $actions = []; |
||
16 | |||
17 | /** |
||
18 | * $allowTypes. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $allowTypes = [ |
||
23 | 'from', |
||
24 | 'select', |
||
25 | 'where', |
||
26 | 'join', |
||
27 | 'having', |
||
28 | 'order', |
||
29 | 'union', |
||
30 | 'groupBy', |
||
31 | 'on', |
||
32 | 'with', |
||
33 | 'take', |
||
34 | 'skip', |
||
35 | 'has', |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * _call. |
||
40 | * |
||
41 | * @param string $method |
||
42 | * @param mixed $parameters |
||
43 | * @return \Recca0120\Repository\Criteria |
||
44 | */ |
||
45 | 25 | public function __call($method, $parameters) |
|
55 | |||
56 | /** |
||
57 | * __callStatic. |
||
58 | * |
||
59 | * @param string $method |
||
60 | * @param array $parameters |
||
61 | * @return static |
||
62 | */ |
||
63 | 1 | public static function __callStatic($method, $parameters) |
|
69 | |||
70 | /** |
||
71 | * all. |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | 22 | public function all() |
|
79 | |||
80 | /** |
||
81 | * alias raw. |
||
82 | * |
||
83 | * @param mixed $value |
||
84 | * @return Expression |
||
85 | */ |
||
86 | 2 | public static function expr($value) |
|
90 | |||
91 | /** |
||
92 | * @param mixed $value |
||
93 | * @return \Recca0120\Repository\Expression |
||
94 | */ |
||
95 | 2 | public static function raw($value) |
|
99 | |||
100 | /** |
||
101 | * Creates an instance of the class. |
||
102 | * |
||
103 | * @return Criteria |
||
104 | */ |
||
105 | 24 | public static function create() |
|
126 | } |
||
127 |