src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location
|
@@ 146-155 (lines=10) @@
|
| 143 |
|
* @param string $interval a DateInterval compatible interval to skew the time with |
| 144 |
|
* @return int |
| 145 |
|
*/ |
| 146 |
|
private function getTimestamp($interval = null) |
| 147 |
|
{ |
| 148 |
|
$time = clone $this->currentTime; |
| 149 |
|
|
| 150 |
|
if ($interval) { |
| 151 |
|
$time->add(new DateInterval($interval)); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return $time->getTimestamp(); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
src/Surfnet/StepupGateway/GatewayBundle/Service/ProxyResponseService.php 1 location
|
@@ 216-225 (lines=10) @@
|
| 213 |
|
* @param string $interval a \DateInterval compatible interval to skew the time with |
| 214 |
|
* @return int |
| 215 |
|
*/ |
| 216 |
|
private function getTimestamp($interval = null) |
| 217 |
|
{ |
| 218 |
|
$time = clone $this->currentTime; |
| 219 |
|
|
| 220 |
|
if ($interval) { |
| 221 |
|
$time->add(new \DateInterval($interval)); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
return $time->getTimestamp(); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
/** |
| 228 |
|
* @param AssertionAdapter $translatedAssertion |