abstract class Twig_TokenParser

Base class for all token parsers.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_TokenParser

File

drupal/core/vendor/twig/twig/lib/Twig/TokenParser.php, line 18

View source
abstract class Twig_TokenParser implements Twig_TokenParserInterface {

  /**
   * @var Twig_Parser
   */
  protected $parser;

  /**
   * Sets the parser associated with this token parser
   *
   * @param $parser A Twig_Parser instance
   */
  public function setParser(Twig_Parser $parser) {
    $this->parser = $parser;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_TokenParser::$parser protected property
Twig_TokenParser::setParser public function Sets the parser associated with this token parser Overrides Twig_TokenParserInterface::setParser
Twig_TokenParserInterface::getTag function Gets the tag name associated with this token parser. 18
Twig_TokenParserInterface::parse function Parses a token and returns a node. 18