Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface::lex PHP Method

lex() public method

Converts a string into a sequence of tokens.
public lex ( string $value ) : array
$value string
return array
    public function lex(string $value) : array;

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  *
  * @throws MalformedFunctionException
  */
 public function lex(string $value) : array
 {
     if (false === $this->functionTokenizer->isTokenized($value)) {
         $value = $this->functionTokenizer->tokenize($value);
     }
     return $this->decoratedLexer->lex($value);
 }
All Usage Examples Of Nelmio\Alice\FixtureBuilder\ExpressionLanguage\LexerInterface::lex
LexerInterface