@@ 272-293 (lines=22) @@ | ||
269 | * |
|
270 | * @return string |
|
271 | */ |
|
272 | public function toHttpQuery() |
|
273 | { |
|
274 | return '?' . http_build_query( |
|
275 | array_filter( |
|
276 | [ |
|
277 | 'actorInstitution' => $this->actorInstitution, |
|
278 | 'actorId' => $this->actorId, |
|
279 | 'name' => $this->name, |
|
280 | 'type' => $this->type, |
|
281 | 'secondFactorId' => $this->secondFactorId, |
|
282 | 'email' => $this->email, |
|
283 | 'institution' => $this->institution, |
|
284 | 'status' => $this->status, |
|
285 | 'orderBy' => $this->orderBy, |
|
286 | 'orderDirection' => $this->orderDirection |
|
287 | ], |
|
288 | function ($value) { |
|
289 | return !is_null($value); |
|
290 | } |
|
291 | ) |
|
292 | ); |
|
293 | } |
|
294 | } |
|
295 |
@@ 264-286 (lines=23) @@ | ||
261 | * |
|
262 | * @return string |
|
263 | */ |
|
264 | public function toHttpQuery() |
|
265 | { |
|
266 | return '?' . http_build_query( |
|
267 | array_filter( |
|
268 | [ |
|
269 | 'actorInstitution' => $this->actorInstitution, |
|
270 | 'actorId' => $this->actorId, |
|
271 | 'name' => $this->name, |
|
272 | 'type' => $this->type, |
|
273 | 'secondFactorId' => $this->secondFactorId, |
|
274 | 'email' => $this->email, |
|
275 | 'status' => $this->status, |
|
276 | 'institution' => $this->institution, |
|
277 | 'orderBy' => $this->orderBy, |
|
278 | 'orderDirection' => $this->orderDirection, |
|
279 | 'p' => $this->pageNumber, |
|
280 | ], |
|
281 | function ($value) { |
|
282 | return !is_null($value); |
|
283 | } |
|
284 | ) |
|
285 | ); |
|
286 | } |
|
287 | } |
|
288 |
@@ 183-203 (lines=21) @@ | ||
180 | return $this; |
|
181 | } |
|
182 | ||
183 | public function toHttpQuery() |
|
184 | { |
|
185 | return '?' . http_build_query( |
|
186 | array_filter( |
|
187 | [ |
|
188 | 'actorId' => $this->actorId, |
|
189 | 'actorInstitution' => $this->actorInstitution, |
|
190 | 'institution' => $this->institution, |
|
191 | 'commonName' => $this->commonName, |
|
192 | 'email' => $this->email, |
|
193 | 'secondFactorTypes' => $this->secondFactorTypes, |
|
194 | 'orderBy' => $this->orderBy, |
|
195 | 'orderDirection' => $this->orderDirection, |
|
196 | 'p' => $this->pageNumber, |
|
197 | ], |
|
198 | function ($value) { |
|
199 | return !is_null($value); |
|
200 | } |
|
201 | ) |
|
202 | ); |
|
203 | } |
|
204 | ||
205 | /** |
|
206 | * @param mixed $value |
@@ 209-231 (lines=23) @@ | ||
206 | Assert\that($value)->string($message)->notEmpty($message); |
|
207 | } |
|
208 | ||
209 | public function toHttpQuery() |
|
210 | { |
|
211 | return '?'.http_build_query( |
|
212 | array_filter( |
|
213 | [ |
|
214 | 'actorId' => $this->actorId, |
|
215 | 'actorInstitution' => $this->actorInstitution, |
|
216 | 'institution' => $this->institution, |
|
217 | 'identityId' => $this->identityId, |
|
218 | 'name' => $this->name, |
|
219 | 'email' => $this->email, |
|
220 | 'role' => $this->role, |
|
221 | 'raInstitution' => $this->raInstitution, |
|
222 | 'orderBy' => $this->orderBy, |
|
223 | 'orderDirection' => $this->orderDirection, |
|
224 | 'p' => $this->pageNumber, |
|
225 | ], |
|
226 | function ($value) { |
|
227 | return !is_null($value); |
|
228 | } |
|
229 | ) |
|
230 | ); |
|
231 | } |
|
232 | } |
|
233 |