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

Inheritance: use trait Nelmio\Alice\IsAServiceTrait
Datei anzeigen Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( )
detokenize ( string $value ) : string
isTokenized ( string $value ) : boolean
tokenize ( string $value ) : string

Private Methods

Method 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 method

public __construct ( )

detokenize() public method

public detokenize ( string $value ) : string
$value string
return string

isTokenized() public method

public isTokenized ( string $value ) : boolean
$value string
return boolean

tokenize() public method

public tokenize ( string $value ) : string
$value string
return string