generate() публичный Метод

Generate a URL of the given type from the specified values.
public generate ( string $type, array $values = [] ) : string
$type string
$values array
Результат string
 /**
  * Test generating URL with extra value
  *
  * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
  * @expectedExceptionMessage Unused values in values array: 'bar'.
  */
 public function testGenerateSuperfluousValue()
 {
     $urlHandler = new Common\RequestParser\Pattern(array('pattern' => '/foo/{foo}'));
     $urlHandler->generate('pattern', array('foo' => 23, 'bar' => 42));
 }