Jackalope\Transport\Jackrabbit\Request::__construct PHP Метод

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

Initiaties the NodeTypes request object.
public __construct ( Jackalope\FactoryInterface $factory, Client $client, Jackalope\Transport\Jackrabbit\curl $curl, string $method, string | array $uri )
$factory Jackalope\FactoryInterface Ignored for now, as this class does not create objects
$client Client The jackrabbit client instance
$curl Jackalope\Transport\Jackrabbit\curl The cURL object to use in this request
$method string the HTTP method to use, one of the class constants
$uri string | array the remote url for this request, including protocol, host name, workspace and path to the object to manipulate. May be an array of uri
    public function __construct(FactoryInterface $factory, Client $client, curl $curl, $method, $uri)
    {
        $this->client = $client;
        $this->curl = $curl;
        $this->setMethod($method);
        $this->setUri($uri);
    }