src/main/php/ioc/binding/BindingScopes.php
public function setSession(Session $session)
    {
        if ($this->sessionScope instanceof SessionBindingScope) {
            $this->sessionScope->setSession($session);
            return $this;
        }

        throw new \RuntimeException('Can not set session for session scope implementation ' . get_class($this->sessionScope));
    }
public function setSession(Session $session)
    {
        if ($this->sessionScope instanceof SessionBindingScope) {
            $this->sessionScope->setSession($session);
            return $this;
        }

        throw new \RuntimeException('Can not set session for session scope implementation ' . get_class($this->sessionScope));
    }
public function setSession ( Session $ session ) { if ( $ this -> sessionScope instanceof SessionBindingScope ) { $ this -> sessionScope -> setSession ( $ session ) ; return $ this ; } throw new \ RuntimeException ( 'Can not set session for session scope implementation ' . get_class ( $ this -> sessionScope ) ) ; }
sets the session for the session scope in case it is the built-in implementation

@param   \stubbles\ioc\binding\Session  $session
@return  \stubbles\ioc\binding\BindingScopes
@throws  \RuntimeException  in case the session scope has been replaced with another implementation
@since   5.4.0
sets the session for the session scope in case it is the built - in implementation