protected function validateTokenTimestamp($ts) { $timeout = $this->getActionTokenTimeout(); $now = $this->getCurrentTime()->getTimestamp(); return $timeout == 0 || $ts > $now - $timeout && $ts < $now + $timeout; }