1 | <?php declare(strict_types=1); |
||
29 | trait BaseQueryParserTrait |
||
30 | { |
||
31 | /** |
||
32 | * @param array $parameters |
||
33 | * @param string $errorTitle |
||
34 | * |
||
35 | * @return iterable |
||
36 | */ |
||
37 | 11 | protected function getIncludes(array $parameters, string $errorTitle): iterable |
|
47 | |||
48 | /** |
||
49 | * @param array $parameters |
||
50 | * @param string $errorTitle |
||
51 | * |
||
52 | * @return iterable |
||
53 | */ |
||
54 | 1 | protected function getIncludePaths(array $parameters, string $errorTitle): iterable |
|
62 | |||
63 | /** |
||
64 | * @param array $parameters |
||
65 | * @param string $errorTitle |
||
66 | * |
||
67 | * @return iterable |
||
68 | */ |
||
69 | 4 | protected function getFields(array $parameters, string $errorTitle): iterable |
|
82 | |||
83 | /** |
||
84 | * @param array $parameters |
||
85 | * @param string $errorTitle |
||
86 | * |
||
87 | * @return iterable |
||
88 | */ |
||
89 | 2 | protected function getSorts(array $parameters, string $errorTitle): iterable |
|
114 | |||
115 | /** |
||
116 | * @param array $parameters |
||
117 | * @param string $errorTitle |
||
118 | * |
||
119 | * @return iterable |
||
120 | */ |
||
121 | 1 | protected function getProfileUrls(array $parameters, string $errorTitle): iterable |
|
133 | |||
134 | /** |
||
135 | * @param string $paramName |
||
136 | * @param string|mixed $shouldBeString |
||
137 | * @param string $errorTitle |
||
138 | * |
||
139 | * @return iterable |
||
140 | */ |
||
141 | 12 | private function splitCommaSeparatedStringAndCheckNoEmpties( |
|
148 | |||
149 | /** |
||
150 | * @param string $paramName |
||
151 | * @param string|mixed $shouldBeString |
||
152 | * @param string $errorTitle |
||
153 | * |
||
154 | * @return iterable |
||
155 | */ |
||
156 | 1 | private function splitSpaceSeparatedStringAndCheckNoEmpties( |
|
163 | |||
164 | /** |
||
165 | * @param string $paramName |
||
166 | * @param string|mixed $shouldBeString |
||
167 | * @param string $separator |
||
168 | * @param string $errorTitle |
||
169 | * |
||
170 | * @return iterable |
||
171 | * |
||
172 | * @SuppressWarnings(PHPMD.IfStatementAssignment) |
||
173 | */ |
||
174 | 12 | private function splitStringAndCheckNoEmpties( |
|
193 | |||
194 | /** |
||
195 | * @param string $paramName |
||
196 | * @param string $errorTitle |
||
197 | * |
||
198 | * @return ErrorInterface |
||
199 | */ |
||
200 | 6 | private function createParameterError(string $paramName, string $errorTitle): ErrorInterface |
|
207 | } |
||
208 |