PHP 클래스 Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Lexer\FunctionTreeTokenizer

상속: use trait Nelmio\Alice\IsAServiceTrait
파일 보기 프로젝트 열기: nelmio/alice

공개 메소드들

메소드 설명
detokenize ( string $value ) : string Replaces the tokens by their original values.
functionIsNotClosed ( array $functions ) : boolean
isClosingToken ( string $value ) : boolean
isOpeningToken ( string $value ) : boolean
isTheLastFunction ( array $functions ) : boolean
tokenize ( string $value ) : array Replaces the function delimiters by tokens to easily identify them in the future and return the value splat into tokens.

메소드 상세

detokenize() 공개 메소드

Replaces the tokens by their original values.
public detokenize ( string $value ) : string
$value string
리턴 string

functionIsNotClosed() 공개 메소드

public functionIsNotClosed ( array $functions ) : boolean
$functions array
리턴 boolean

isClosingToken() 공개 메소드

public isClosingToken ( string $value ) : boolean
$value string
리턴 boolean

isOpeningToken() 공개 메소드

public isOpeningToken ( string $value ) : boolean
$value string
리턴 boolean

isTheLastFunction() 공개 메소드

public isTheLastFunction ( array $functions ) : boolean
$functions array
리턴 boolean

tokenize() 공개 메소드

Example: 'foo )> bar' will result in: [ 'foo ', 'FUNCTION_START__f__', 'FUNCTION_START__g__', 'IDENTITY_OR_FUNCTION_END', 'IDENTITY_OR_FUNCTION_END', ' bar', ]
public tokenize ( string $value ) : array
$value string
리턴 array