Neos\Flow\Session\Session::getLastActivityTimestamp PHP Метод

getLastActivityTimestamp() публичный Метод

For the current (local) session, this method will always return the current time. For a remote session, the unix timestamp will be returned.
public getLastActivityTimestamp ( ) : integer
Результат integer unix timestamp
    public function getLastActivityTimestamp()
    {
        if ($this->started !== true) {
            throw new Exception\SessionNotStartedException('Tried to retrieve the last activity timestamp of a session which has not been started yet.', 1354290378);
        }
        return $this->lastActivityTimestamp;
    }

Usage Example

 /**
  * @test
  * @expectedException \Neos\Flow\Session\Exception\SessionNotStartedException
  */
 public function getLastActivityTimestampThrowsExceptionIfCalledOnNonStartedSession()
 {
     $session = new Session();
     $session->getLastActivityTimestamp();
 }