| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class OrderBy implements CriteriaInterface |
||
| 12 | { |
||
| 13 | protected $orderBy; |
||
| 14 | protected $direction; |
||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $orderBy |
||
| 19 | * @param string $direction |
||
| 20 | */ |
||
| 21 | public function __construct( $orderBy, $direction = 'ASC' ) |
||
| 22 | { |
||
| 23 | $this->orderBy = $orderBy; |
||
| 24 | $this->direction = $direction; |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed $queryBuilder |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function apply( $queryBuilder ) |
||
| 35 | } |
||
| 36 | |||
| 38 | } |