protected function initTransport($options, $transport = "TeamSpeak3_Transport_TCP")
  {
    if(!is_array($options))
    {
      throw new TeamSpeak3_Adapter_Exception("transport parameters must provided in an array");
    }

    $this->transport = new $transport($options);
  }
protected function initTransport($options, $transport = "TeamSpeak3_Transport_TCP")
  {
    if(!is_array($options))
    {
      throw new TeamSpeak3_Adapter_Exception("transport parameters must provided in an array");
    }

    $this->transport = new $transport($options);
  }
protected function initTransport ( $ options , $ transport = "TeamSpeak3_Transport_TCP" ) { if ( ! is_array ( $ options ) ) { throw new TeamSpeak3_Adapter_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 TeamSpeak3_Adapter_Exception
@return void
Loads the transport object object used for the connection adapter and passes a given set of options .