protected function getExpirationDate($secondsToExpiration) { return new DateTime(sprintf('now +%d seconds', $secondsToExpiration)); }