RelativeResourceTemplate
class RelativeResourceTemplate implements ResourceTemplateInterface (View source)
internal |
Represents a relative resource template, meaning that it will never contain a leading slash or
trailing verb (":
Examples: projects projects/{project} foo/{bar=*}/fizz/
Templates use the syntax of the API platform; see https://github.com/googleapis/api-common-protos/blob/master/google/api/http.proto for details. A template consists of a sequence of literals, wildcards, and variable bindings, where each binding can have a sub-path. A string representation can be parsed into an instance of AbsoluteResourceTemplate, which can then be used to perform matching and instantiation.
Methods
RelativeResourceTemplate constructor.
No description
No description
No description
No description
Details
__construct(string $path)
RelativeResourceTemplate constructor.
string
__toString()
No description
string
render(array $bindings)
No description
bool
matches(string $path)
No description
array
match(string $path)
No description