src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaListingSearchQuery.php 1 location
|
@@ 78-88 (lines=11) @@
|
| 75 |
|
* @param string|null $orderDirection |
| 76 |
|
* @return RaListingSearchQuery |
| 77 |
|
*/ |
| 78 |
|
public function setOrderDirection($orderDirection) |
| 79 |
|
{ |
| 80 |
|
Assert\that($orderDirection)->choice( |
| 81 |
|
['asc', 'desc', '', null], |
| 82 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 83 |
|
); |
| 84 |
|
|
| 85 |
|
$this->orderDirection = $orderDirection ?: null; |
| 86 |
|
|
| 87 |
|
return $this; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
private function assertNonEmptyString($value, $parameterName) |
| 91 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorSearchQuery.php 1 location
|
@@ 197-205 (lines=9) @@
|
| 194 |
|
/** |
| 195 |
|
* @param string|null $orderDirection |
| 196 |
|
*/ |
| 197 |
|
public function setOrderDirection($orderDirection) |
| 198 |
|
{ |
| 199 |
|
Assert\that($orderDirection)->choice( |
| 200 |
|
['asc', 'desc', '', null], |
| 201 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 202 |
|
); |
| 203 |
|
|
| 204 |
|
$this->orderDirection = $orderDirection ?: null; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
private function assertNonEmptyString($value, $name) |
| 208 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Identity/Dto/SecondFactorAuditLogSearchQuery.php 1 location
|
@@ 84-92 (lines=9) @@
|
| 81 |
|
/** |
| 82 |
|
* @param string|null $orderDirection |
| 83 |
|
*/ |
| 84 |
|
public function setOrderDirection($orderDirection) |
| 85 |
|
{ |
| 86 |
|
Assert\that($orderDirection)->choice( |
| 87 |
|
['asc', 'desc', '', null], |
| 88 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 89 |
|
); |
| 90 |
|
|
| 91 |
|
$this->orderDirection = $orderDirection ?: null; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
private function assertNonEmptyString($value, $name) |
| 95 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaCandidateSearchQuery.php 1 location
|
@@ 114-125 (lines=12) @@
|
| 111 |
|
* @param string $orderDirection |
| 112 |
|
* @return $this |
| 113 |
|
*/ |
| 114 |
|
public function setOrderDirection($orderDirection) |
| 115 |
|
{ |
| 116 |
|
$this->assertNonEmptyString($orderDirection, 'orderDirection'); |
| 117 |
|
Assert\that($orderDirection)->choice( |
| 118 |
|
['asc', 'desc', '', null], |
| 119 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 120 |
|
); |
| 121 |
|
|
| 122 |
|
$this->orderDirection = $orderDirection; |
| 123 |
|
|
| 124 |
|
return $this; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
public function toHttpQuery() |
| 128 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Configuration/Dto/RaLocationSearchQuery.php 1 location
|
@@ 60-71 (lines=12) @@
|
| 57 |
|
* @param string $orderDirection |
| 58 |
|
* @return $this |
| 59 |
|
*/ |
| 60 |
|
public function setOrderDirection($orderDirection) |
| 61 |
|
{ |
| 62 |
|
$this->assertNonEmptyString($orderDirection, 'orderDirection'); |
| 63 |
|
Assert\that($orderDirection)->choice( |
| 64 |
|
['asc', 'desc', '', null], |
| 65 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 66 |
|
); |
| 67 |
|
|
| 68 |
|
$this->orderDirection = $orderDirection; |
| 69 |
|
|
| 70 |
|
return $this; |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
private function assertNonEmptyString($value, $name) |
| 74 |
|
{ |