class BaseConfiguratorReader

Class BaseConfiguratorReader - base methods for loading resources from plugins

Properties

protected $tokens
protected $line

Methods

setCode(array $tokens, int $line = 0)

Sets the code to manipulate.

mixed
next()

Gets the next token.

mixed
peek(int $nb = 1)

Peeks the next token.

mixed
value(mixed $token)

Gets a value of a token

Details

at line 26
protected setCode(array $tokens, int $line = 0)

Sets the code to manipulate.

Parameters

array $tokens An array of PHP tokens
int $line The start line of the code

at line 36
protected mixed next()

Gets the next token.

Return Value

mixed

at line 56
protected mixed peek(int $nb = 1)

Peeks the next token.

Parameters

int $nb

Return Value

mixed

at line 78
protected mixed value(mixed $token)

Gets a value of a token

Parameters

mixed $token

Return Value

mixed