Value
in package
FinalYes
Table of Contents
Properties
- $chars : string
- The string representation of the parsed value.
- $vars : array<string|int, int>
- The locations of the variables in the value.
Methods
- append() : Value
- Create a new value instance, appending the characters.
- blank() : Value
- Create an empty value instance.
- getChars() : string
- Get the string representation of the parsed value.
- getVars() : array<string|int, int>
- Get the locations of the variables in the value.
- __construct() : void
- Internal constructor for a value.
Properties
$chars
The string representation of the parsed value.
private
string
$chars
$vars
The locations of the variables in the value.
private
array<string|int, int>
$vars
Methods
append()
Create a new value instance, appending the characters.
public
append(string $chars, bool $var) : Value
Parameters
- $chars : string
- $var : bool
Return values
Valueblank()
Create an empty value instance.
public
static blank() : Value
Return values
ValuegetChars()
Get the string representation of the parsed value.
public
getChars() : string
Return values
stringgetVars()
Get the locations of the variables in the value.
public
getVars() : array<string|int, int>
Return values
array<string|int, int>__construct()
Internal constructor for a value.
private
__construct(string $chars, array<string|int, int> $vars) : void
Parameters
- $chars : string
- $vars : array<string|int, int>