1 | <?php namespace Neomerx\JsonApi\Encoder\Parameters; |
||
25 | class SortParameter implements SortParameterInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $sortField; |
||
31 | |||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $isAscending; |
||
36 | |||
37 | /** |
||
38 | * @param string $sortField |
||
39 | * @param bool $isAscending |
||
40 | */ |
||
41 | 14 | public function __construct($sortField, $isAscending) |
|
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 4 | public function getField() |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 2 | public function isAscending() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 2 | public function isDescending() |
|
73 | } |
||
74 |