public function getGateway()
    {
        if (!$this->gateway->connected() && !$this->gateway->connect($this->username)) {
            throw new \RuntimeException('Unable to connect to remote server.');
        }

        return $this->gateway;
    }
public function getGateway()
    {
        if (!$this->gateway->connected() && !$this->gateway->connect($this->username)) {
            throw new \RuntimeException('Unable to connect to remote server.');
        }

        return $this->gateway;
    }
public function getGateway ( ) { if ( ! $ this -> gateway -> connected ( ) && ! $ this -> gateway -> connect ( $ this -> username ) ) { throw new \ RuntimeException ( 'Unable to connect to remote server.' ) ; } return $ this -> gateway ; }
Get the gateway implementation.

@throws \RuntimeException

@return \Collective\Remote\GatewayInterface
Get the gateway implementation .