Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class OrderBy implements CriteriaInterface |
||
9 | { |
||
10 | private $field; |
||
11 | private $order; |
||
12 | |||
13 | /** |
||
14 | * OrderBy constructor. |
||
15 | * |
||
16 | * @param $field |
||
17 | * @param $order |
||
18 | */ |
||
19 | public function __construct($field, $order = 'asc') |
||
23 | } |
||
24 | |||
25 | public function apply($model, BaseRepositoryInterface $repository) |
||
30 |