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