original_string: public function channelGetByName($name)
    {
      foreach($this->channelList() as $channel)
      {
        if($channel["channel_name"] == $name) return $channel;
      }
  
      throw new Exception("invalid channelID", 0x300);
    }
code: public function channelGetByName($name)
    {
      foreach($this->channelList() as $channel)
      {
        if($channel["channel_name"] == $name) return $channel;
      }
  
      throw new Exception("invalid channelID", 0x300);
    }
code_tokens: public function channelGetByName ( $ name ) { foreach ( $ this -> channelList ( ) as $ channel ) { if ( $ channel [ "channel_name" ] == $ name ) return $ channel ; } throw new Exception ( "invalid channelID" , 0x300 ) ; }
docstring: Returns the Channel object matching the given name.
  
  @param  string $name
  @throws Exception
  @return Channel
docstring_tokens: Returns the Channel object matching the given name .