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/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 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaCandidateSearchQuery.php 1 location
|
@@ 131-142 (lines=12) @@
|
| 128 |
|
* @param string $orderDirection |
| 129 |
|
* @return $this |
| 130 |
|
*/ |
| 131 |
|
public function setOrderDirection($orderDirection) |
| 132 |
|
{ |
| 133 |
|
$this->assertNonEmptyString($orderDirection, 'orderDirection'); |
| 134 |
|
Assert\that($orderDirection)->choice( |
| 135 |
|
['asc', 'desc', '', null], |
| 136 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 137 |
|
); |
| 138 |
|
|
| 139 |
|
$this->orderDirection = $orderDirection; |
| 140 |
|
|
| 141 |
|
return $this; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
public function toHttpQuery() |
| 145 |
|
{ |
src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorExportQuery.php 1 location
|
@@ 186-194 (lines=9) @@
|
| 183 |
|
/** |
| 184 |
|
* @param string|null $orderDirection |
| 185 |
|
*/ |
| 186 |
|
public function setOrderDirection($orderDirection) |
| 187 |
|
{ |
| 188 |
|
Assert\that($orderDirection)->choice( |
| 189 |
|
['asc', 'desc', '', null], |
| 190 |
|
"Invalid order direction, must be one of 'asc', 'desc'" |
| 191 |
|
); |
| 192 |
|
|
| 193 |
|
$this->orderDirection = $orderDirection ?: null; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
private function assertNonEmptyString($value, $name) |
| 197 |
|
{ |