PHP Class Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Lexer\FunctionTokenizer

Inheritance: use trait Nelmio\Alice\IsAServiceTrait
Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( )
detokenize ( string $value ) : string
isTokenized ( string $value ) : boolean
tokenize ( string $value ) : string

Private Methods

Méthode Description
append ( array &$tree, array $values, integer $startKey, integer $endKey )
buildTree ( string $originalValue, array $tokens ) : array Regroup tokens together by detecting when the function starts, closes or when it is nested.

Method Details

__construct() public méthode

public __construct ( )

detokenize() public méthode

public detokenize ( string $value ) : string
$value string
Résultat string

isTokenized() public méthode

public isTokenized ( string $value ) : boolean
$value string
Résultat boolean

tokenize() public méthode

public tokenize ( string $value ) : string
$value string
Résultat string