interface Twig_LexerInterface in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/LexerInterface.php \Twig_LexerInterface
- 7.2 vendor/Twig/LexerInterface.php \Twig_LexerInterface
Interface implemented by lexer classes.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Twig_LexerInterface
Expanded class hierarchy of Twig_LexerInterface
All classes that implement Twig_LexerInterface
Deprecated
since 1.12 (to be removed in 3.0)
File
- vendor/
Twig/ LexerInterface.php, line 19
View source
interface Twig_LexerInterface {
/**
* Tokenizes a source code.
*
* @param string $code The source code
* @param string $filename A unique identifier for the source code
*
* @return Twig_TokenStream A token stream instance
*
* @throws Twig_Error_Syntax When the code is syntactically wrong
*/
public function tokenize($code, $filename = null);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_LexerInterface:: |
public | function | Tokenizes a source code. | 1 |