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