Interface implemented by lexer classes.
@package twig @author Fabien Potencier <fabien@symfony.com>
Expanded class hierarchy of Twig_LexerInterface
All classes that implement Twig_LexerInterface
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
*/
function tokenize($code, $filename = null);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_LexerInterface:: |
function | Tokenizes a source code. | 1 |