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
|
@@ 179-188 (lines=10) @@
|
176 |
|
* @param string $interval a \DateInterval compatible interval to skew the time with |
177 |
|
* @return int |
178 |
|
*/ |
179 |
|
private function getTimestamp($interval = null) |
180 |
|
{ |
181 |
|
$time = clone $this->currentTime; |
182 |
|
|
183 |
|
if ($interval) { |
184 |
|
$time->add(new \DateInterval($interval)); |
185 |
|
} |
186 |
|
|
187 |
|
return $time->getTimestamp(); |
188 |
|
} |
189 |
|
} |
190 |
|
|