1 | <?php |
||
7 | class Criteria |
||
8 | { |
||
9 | use Concerns\BuildsQueries, |
||
10 | Concerns\QueriesRelationships, |
||
11 | Concerns\EloquentBuildsQueries, |
||
12 | Concerns\SoftDeletingScope; |
||
13 | |||
14 | /** |
||
15 | * $methods. |
||
16 | * |
||
17 | * @var \Recca0120\Repository\Method[] |
||
18 | */ |
||
19 | protected $methods = []; |
||
20 | |||
21 | /** |
||
22 | * create. |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | public static function create() |
||
30 | |||
31 | /** |
||
32 | * alias raw. |
||
33 | * |
||
34 | * @param mixed $value |
||
35 | * @return Expression |
||
36 | */ |
||
37 | public static function expr($value) |
||
41 | |||
42 | /** |
||
43 | * @param mixed $value |
||
44 | * @return \Recca0120\Repository\Expression |
||
45 | 25 | */ |
|
46 | public static function raw($value) |
||
50 | 24 | ||
51 | /** |
||
52 | * each. |
||
53 | 1 | * |
|
54 | * @param Closure $callback |
||
55 | * @return void |
||
56 | */ |
||
57 | public function each(Closure $callback) |
||
63 | 1 | ||
64 | /** |
||
65 | 1 | * toArray. |
|
66 | * |
||
67 | 1 | * @return array |
|
68 | */ |
||
69 | public function toArray() |
||
78 | } |
||
79 |