Total Complexity | 1 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
27 | class Order { |
||
28 | const ASC = 'ascending'; |
||
29 | const DESC = 'descending'; |
||
30 | |||
31 | /** |
||
32 | * @var SearchPropertyDefinition |
||
33 | * |
||
34 | * The property that should be sorted on. |
||
35 | */ |
||
36 | public $property; |
||
37 | /** |
||
38 | * @var string 'ascending' or 'descending' |
||
39 | * |
||
40 | * The sort direction |
||
41 | */ |
||
42 | public $order; |
||
43 | |||
44 | /** |
||
45 | * Order constructor. |
||
46 | * @param SearchPropertyDefinition $property |
||
47 | * @param string $order |
||
48 | */ |
||
49 | public function __construct(SearchPropertyDefinition $property, string $order) { |
||
54 |