original_string: public function channelGetById($cid)
    {
      if(!array_key_exists((string) $cid, $this->channelList()))
      {
        throw new Exception("invalid channelID", 0x300);
      }
  
      return $this->channelList[intval((string) $cid)];
    }
code: public function channelGetById($cid)
    {
      if(!array_key_exists((string) $cid, $this->channelList()))
      {
        throw new Exception("invalid channelID", 0x300);
      }
  
      return $this->channelList[intval((string) $cid)];
    }
code_tokens: public function channelGetById ( $ cid ) { if ( ! array_key_exists ( ( string ) $ cid , $ this -> channelList ( ) ) ) { throw new Exception ( "invalid channelID" , 0x300 ) ; } return $ this -> channelList [ intval ( ( string ) $ cid ) ] ; }
docstring: Returns the Channel object matching the given ID.
  
  @param  integer $cid
  @throws Exception
  @return Channel
docstring_tokens: Returns the Channel object matching the given ID .