src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location
|
@@ 155-164 (lines=10) @@
|
| 152 |
|
* @param string $interval a DateInterval compatible interval to skew the time with |
| 153 |
|
* @return int |
| 154 |
|
*/ |
| 155 |
|
private function getTimestamp($interval = null) |
| 156 |
|
{ |
| 157 |
|
$time = clone $this->currentTime; |
| 158 |
|
|
| 159 |
|
if ($interval) { |
| 160 |
|
$time->add(new DateInterval($interval)); |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
return $time->getTimestamp(); |
| 164 |
|
} |
| 165 |
|
} |
| 166 |
|
|
src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 location
|
@@ 160-169 (lines=10) @@
|
| 157 |
|
* @param string $interval a \DateInterval compatible interval to skew the time with |
| 158 |
|
* @return int |
| 159 |
|
*/ |
| 160 |
|
private function getTimestamp($interval = null) |
| 161 |
|
{ |
| 162 |
|
$time = clone $this->currentTime; |
| 163 |
|
|
| 164 |
|
if ($interval) { |
| 165 |
|
$time->add(new \DateInterval($interval)); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
return $time->getTimestamp(); |
| 169 |
|
} |
| 170 |
|
} |
| 171 |
|
|
src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 location
|
@@ 196-205 (lines=10) @@
|
| 193 |
|
* @param string $interval a \DateInterval compatible interval to skew the time with |
| 194 |
|
* @return int |
| 195 |
|
*/ |
| 196 |
|
private function getTimestamp($interval = null) |
| 197 |
|
{ |
| 198 |
|
$time = clone $this->currentTime; |
| 199 |
|
|
| 200 |
|
if ($interval) { |
| 201 |
|
$time->add(new \DateInterval($interval)); |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
return $time->getTimestamp(); |
| 205 |
|
} |
| 206 |
|
} |
| 207 |
|
|