abstract class Twig_TokenParser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/TokenParser.php \Twig_TokenParser
Base class for all token parsers.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Twig_TokenParser implements Twig_TokenParserInterface
Expanded class hierarchy of Twig_TokenParser
File
- vendor/
twig/ twig/ lib/ Twig/ TokenParser.php, line 17
View source
abstract class Twig_TokenParser implements Twig_TokenParserInterface {
/**
* @var Twig_Parser
*/
protected $parser;
/**
* Sets the parser associated with this token parser.
*
* @param Twig_Parser $parser A Twig_Parser instance
*/
public function setParser(Twig_Parser $parser) {
$this->parser = $parser;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_TokenParser:: |
protected | property | ||
Twig_TokenParser:: |
public | function |
Sets the parser associated with this token parser. Overrides Twig_TokenParserInterface:: |
|
Twig_TokenParserInterface:: |
public | function | Gets the tag name associated with this token parser. | 19 |
Twig_TokenParserInterface:: |
public | function | Parses a token and returns a node. | 19 |