Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
4 | class Sorting implements ISorting |
||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | private $property; |
||
10 | |||
11 | /** |
||
12 | * @var SortingDirectionEnum |
||
13 | */ |
||
14 | private $direction; |
||
15 | |||
16 | /** |
||
17 | * @param string $property |
||
18 | * @param SortingDirectionEnum $direction |
||
19 | */ |
||
20 | public function __construct($property, SortingDirectionEnum $direction) |
||
21 | { |
||
22 | $this->property = $property; |
||
23 | $this->direction = $direction; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getProperty() |
||
30 | { |
||
31 | return $this->property; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return SortingDirectionEnum |
||
36 | */ |
||
37 | public function getDirection() |
||
40 | } |
||
41 | } |
||
42 |