Open Journal Systems  3.3.0
Guzzle\Parser\UriTemplate\UriTemplate Class Reference
Inheritance diagram for Guzzle\Parser\UriTemplate\UriTemplate:
Guzzle\Parser\UriTemplate\UriTemplateInterface

Public Member Functions

 expand ($template, array $variables)
 
 setRegex ($regexPattern)
 

Data Fields

const DEFAULT_PATTERN = '/\{([^\}]+)\}/'
 

Detailed Description

Member Function Documentation

◆ expand()

Guzzle\Parser\UriTemplate\UriTemplate::expand (   $template,
array  $variables 
)

Expand the URI template using the supplied variables

Parameters
string$templateURI Template to expand
array$variablesVariables to use with the expansion
Returns
string Returns the expanded template

Implements Guzzle\Parser\UriTemplate\UriTemplateInterface.

Definition at line 48 of file lib/vendor/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplate.php.

◆ setRegex()

Guzzle\Parser\UriTemplate\UriTemplate::setRegex (   $regexPattern)

Set the regex patten used to expand URI templates

Parameters
string$regexPattern

Definition at line 65 of file lib/vendor/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplate.php.

Field Documentation

◆ DEFAULT_PATTERN

const Guzzle\Parser\UriTemplate\UriTemplate::DEFAULT_PATTERN = '/\{([^\}]+)\}/'

The documentation for this class was generated from the following file: