class StringParser

Properties

protected $left
protected $right

Methods

__construct(string $left = '{', string $right = '}')

No description

string
parse(string $template, string|array $data)

No description

parseSingle($key, $value, $template)

No description

parsePair($key, $data, $template)

No description

Details

at line 15
__construct(string $left = '{', string $right = '}')

No description

Parameters

string $left

The left delimiter

string $right

The right delimiter

at line 27
string parse(string $template, string|array $data)

No description

Parameters

string $template

The template string

string|array $data

The value the template will be rendered with

Return Value

string

The rendered template

at line 47
protected parseSingle($key, $value, $template)

No description

Parameters

$key
$value
$template

at line 55
protected parsePair($key, $data, $template)

No description

Parameters

$key
$data
$template