protected function initTransport($options, $transport = '\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Transport\TCP')
  {
    if(!is_array($options))
    {
      throw new Exception("transport parameters must provided in an array");
    }

    $this->transport = new $transport($options);
  }
protected function initTransport($options, $transport = '\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Transport\TCP')
  {
    if(!is_array($options))
    {
      throw new Exception("transport parameters must provided in an array");
    }

    $this->transport = new $transport($options);
  }
protected function initTransport ( $ options , $ transport = '\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Transport\TCP' ) { if ( ! is_array ( $ options ) ) { throw new Exception ( "transport parameters must provided in an array" ) ; } $ this -> transport = new $ transport ( $ options ) ; }
Loads the transport object object used for the connection adapter and passes a given set
of options.

@param  array  $options
@param  string $transport
@throws Exception
@return void
Loads the transport object object used for the connection adapter and passes a given set of options .