1 | <?php namespace Neomerx\JsonApi\Http\Parameters; |
||
27 | class Parameters extends EncodingParameters implements ParametersInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var HeaderInterface |
||
31 | */ |
||
32 | private $contentType; |
||
33 | |||
34 | /** |
||
35 | * @var AcceptHeaderInterface |
||
36 | */ |
||
37 | private $accept; |
||
38 | |||
39 | /** |
||
40 | * @var SortParameterInterface[]|null |
||
41 | */ |
||
42 | private $sortParameters; |
||
43 | |||
44 | /** |
||
45 | * @var array|null |
||
46 | */ |
||
47 | private $pagingParameters; |
||
48 | |||
49 | /** |
||
50 | * @var array|null |
||
51 | */ |
||
52 | private $filteringParameters; |
||
53 | |||
54 | /** |
||
55 | * @var array|null |
||
56 | */ |
||
57 | private $unrecognizedParams; |
||
58 | |||
59 | /** |
||
60 | * @param HeaderInterface $contentType |
||
61 | * @param AcceptHeaderInterface $accept |
||
62 | * @param string[]|null $includePaths |
||
63 | * @param array|null $fieldSets |
||
64 | * @param SortParameterInterface[]|null $sortParameters |
||
65 | * @param array|null $pagingParameters |
||
66 | * @param array|null $filteringParameters |
||
67 | * @param array|null $unrecognizedParams |
||
68 | */ |
||
69 | 25 | public function __construct( |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 19 | public function getContentTypeHeader() |
|
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | 21 | public function getAcceptHeader() |
|
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | 13 | public function getSortParameters() |
|
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | 12 | public function getPaginationParameters() |
|
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | 13 | public function getFilteringParameters() |
|
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | 9 | public function getUnrecognizedParameters() |
|
136 | |||
137 | /** |
||
138 | * @inheritdoc |
||
139 | */ |
||
140 | 2 | public function isEmpty() |
|
147 | } |
||
148 |