class TwigTestTokenParser_§ in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/IntegrationTest.php \TwigTestTokenParser_§
Hierarchy
- class \Twig_TokenParser implements Twig_TokenParserInterface
- class \TwigTestTokenParser_§
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwigTestTokenParser_§:: |
public | function |
Gets the tag name associated with this token parser. Overrides Twig_TokenParserInterface:: |
|
TwigTestTokenParser_§:: |
public | function |
Parses a token and returns a node. Overrides Twig_TokenParserInterface:: |
|
Twig_TokenParser:: |
protected | property | ||
Twig_TokenParser:: |
public | function |
Sets the parser associated with this token parser. Overrides Twig_TokenParserInterface:: |