src/TeamSpeak3/Node/Server.php
public function channelGetById($cid)
  {
    if(!array_key_exists((string) $cid, $this->channelList()))
    {
      throw new Exception("invalid channelID", 0x300);
    }

    return $this->channelList[intval((string) $cid)];
  }
public function channelGetById($cid)
  {
    if(!array_key_exists((string) $cid, $this->channelList()))
    {
      throw new Exception("invalid channelID", 0x300);
    }

    return $this->channelList[intval((string) $cid)];
  }
public function channelGetById ( $ cid ) { if ( ! array_key_exists ( ( string ) $ cid , $ this -> channelList ( ) ) ) { throw new Exception ( "invalid channelID" , 0x300 ) ; } return $ this -> channelList [ intval ( ( string ) $ cid ) ] ; }
Returns the Channel object matching the given ID.

@param  integer $cid
@throws Exception
@return Channel
Returns the Channel object matching the given ID .