Interface implemented by lexer classes.
author | Fabien Potencier fabien@symfony.com |
---|---|
deprecated | since 1.12 (to be removed in 3.0) |
package | Default |
tokenize(string|\Twig\Source $code,string $name = null): \Twig\TokenStream
Throws |
|
---|
string
A unique identifier for the source code
\Twig\TokenStream