Represents a path template.

Templates use the syntax of the API platform; see the protobuf of HttpRule 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 PathTemplate, which can then be used to perform matching and instantiation.

CloneableInstantiable
ImplementsGoogle\ApiCore\ResourceTemplate\ResourceTemplateInterface
Methods
public __construct( $path)
 

PathTemplate constructor.

public __toString()
 
  • return string A string representation of the path template
public match( $path)
 

Matches a fully qualified path template string.

public matches( $path)
 

Check if $path matches a resource string.

  • return bool
public render(array $bindings)
 

Renders a path template using the provided bindings.

Properties
private $resourceTemplate
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only