original_string: public function resource($name)
    {
        if (!isset($this->resources[$name])) {
            throw new Exceptions\ResourceException("Resource $name does not exist!");
  
            return;
        }
  
        return $this->resources[$name];
    }
code: public function resource($name)
    {
        if (!isset($this->resources[$name])) {
            throw new Exceptions\ResourceException("Resource $name does not exist!");
  
            return;
        }
  
        return $this->resources[$name];
    }
code_tokens: public function resource ( $ name ) { if ( ! isset ( $ this -> resources [ $ name ] ) ) { throw new Exceptions \ ResourceException ( "Resource $name does not exist!" ) ; return ; } return $ this -> resources [ $ name ] ; }
docstring: Returns an API resource.
  
  @param  string $name Name of the resource
  
  @return Raideer\TwitchApi\Resources\Resource
docstring_tokens: Returns an API resource .