You are here

class TwigTestTokenParser_§ in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \TwigTestTokenParser_§

Hierarchy

Expanded class hierarchy of TwigTestTokenParser_§

File

vendor/twig/twig/test/Twig/Tests/IntegrationTest.php, line 112

View source
class TwigTestTokenParser_§ extends Twig_TokenParser {
  public function parse(Twig_Token $token) {
    $this->parser
      ->getStream()
      ->expect(Twig_Token::BLOCK_END_TYPE);
    return new Twig_Node_Print(new Twig_Node_Expression_Constant('§', -1), -1);
  }
  public function getTag() {
    return '§';
  }

}

Members

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