Thruway\Session::__construct PHP Method

__construct() public method

Constructor
public __construct ( Thruway\Transport\TransportInterface $transport )
$transport Thruway\Transport\TransportInterface
    public function __construct(TransportInterface $transport)
    {
        $this->transport = $transport;
        $this->state = static::STATE_PRE_HELLO;
        $this->sessionId = Utils::getUniqueId();
        $this->realm = null;
        $this->sessionStart = new \DateTime();
        $this->authenticationDetails = null;
        $this->dispatcher = new EventDispatcher();
        $this->dispatcher->addRealmSubscriber($this);
    }