Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class OrderBy implements Criterion |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $column; |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $sortBy; |
||
18 | |||
19 | /** |
||
20 | * OrderBy constructor. |
||
21 | * |
||
22 | * @param string $column |
||
23 | * @param string $sortBy |
||
24 | */ |
||
25 | public function __construct(string $column, string $sortBy) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param Builder|mixed $model |
||
33 | * |
||
34 | * @return Builder|mixed |
||
35 | */ |
||
36 | public function apply($model) |
||
41 |