| 1 | <?php |
||
| 9 | class OrderByCriteria implements OrderByCriteriaInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var null|string |
||
| 13 | */ |
||
| 14 | private $orderBy; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param null|string $orderBy |
||
| 18 | */ |
||
| 19 | 14 | public function __construct(string $orderBy = null) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return null|string |
||
| 26 | */ |
||
| 27 | 5 | public function getOrderBy() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param null|string $orderBy |
||
| 34 | */ |
||
| 35 | 10 | public function setOrderBy(string $orderBy = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 8 | public function shouldBeApplied(): bool |
|
| 47 | } |
||
| 48 |