You are here

public function RequestBuilder::addPath in Auth0 Single Sign On 8.2

Add a path and an optional argument to this request.

TODO: Allow array or unlimited arguments

Parameters

string $name Path to add.:

string|null $argument Optional argument to add.:

Return value

RequestBuilder

1 call to RequestBuilder::addPath()
RequestBuilder::__call in vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php
Magic method to overload method calls to paths.

File

vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php, line 158

Class

RequestBuilder
Class RequestBuilder

Namespace

Auth0\SDK\API\Helpers

Code

public function addPath($name, $argument = null) {
  $this->path[] = $name;
  if ($argument !== null) {
    $this->path[] = $argument;
  }
  return $this;
}