class PathTemplate implements Countable

Methods

__construct($data)

No description

__toString()

No description

count()

No description

string
render(array $bindings)

Renders a path template using the provided bindings.

array
match(string $path)

Matches a fully qualified path template string.

Details

at line 43
__construct($data)

Parameters

$data

at line 50
__toString()

at line 55
count()

at line 70
string render(array $bindings)

Renders a path template using the provided bindings.

Parameters

array $bindings An array matching var names to binding strings.

Return Value

string A rendered representation of this path template.

Exceptions

ValidationException if a key isn't provided or if a sub-template can't be parsed.

at line 114
array match(string $path)

Matches a fully qualified path template string.

Parameters

string $path A fully qualified path template string.

Return Value

array Array matching var names to binding values.

Exceptions

ValidationException if path can't be matched to the template.