PHP Class Symfony\Bridge\Twig\TokenParser\TransChoiceTokenParser

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Bridge\Twig\TokenParser\TransTokenParser
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
decideTransChoiceFork ( $token )
getTag ( ) : string Gets the tag name associated with this token parser.
parse ( Twig_Token $token ) : Twig_NodeInterface Parses a token and returns a node.

Method Details

decideTransChoiceFork() public method

public decideTransChoiceFork ( $token )

getTag() public method

Gets the tag name associated with this token parser.
public getTag ( ) : string
return string The tag name

parse() public method

Parses a token and returns a node.
public parse ( Twig_Token $token ) : Twig_NodeInterface
$token Twig_Token A Twig_Token instance
return Twig_NodeInterface A Twig_NodeInterface instance