|
| __construct (?ClientInterface $client, string $method, string $uri, array $headers=[], $body=null, string $version='1.1') |
|
| withQueryParam (string $parameterName, $value) |
|
| send (array $options=[]) |
|
| sendAsync (array $options=[]) |
|
| getClient () |
|
@psalm-suppress PropertyNotSetInConstructor
Definition at line 22 of file ApiRequest.php.
◆ __construct()
Commercetools\Client\ApiRequest::__construct |
( |
?ClientInterface |
$client, |
|
|
string |
$method, |
|
|
string |
$uri, |
|
|
array |
$headers = [] , |
|
|
|
$body = null , |
|
|
string |
$version = '1.1' |
|
) |
| |
@psalm-param array<string, scalar|scalar[]> $headers
- Parameters
-
string | null | resource | \Psr\Http\Message\StreamInterface | $body | |
Definition at line 39 of file ApiRequest.php.
◆ ensureHeader()
Commercetools\Client\ApiRequest::ensureHeader |
( |
array |
$headers, |
|
|
string |
$header, |
|
|
|
$defaultValue |
|
) |
| |
|
protected |
@psalm-param array<string, scalar|scalar[]> $headers @psalm-param string|string[] $defaultValue @psalm-return array<string, scalar|scalar[]>
- Parameters
-
array | $headers | |
string | $header | |
scalar | array | $defaultValue | |
- Returns
- array
Definition at line 56 of file ApiRequest.php.
◆ getClient()
Commercetools\Client\ApiRequest::getClient |
( |
| ) |
|
◆ responseData()
Commercetools\Client\ApiRequest::responseData |
( |
ResponseInterface |
$response | ) |
|
|
finalprotected |
@psalm-return stdClass
@psalm-var ?stdClass $data
Definition at line 145 of file ApiRequest.php.
◆ send()
Commercetools\Client\ApiRequest::send |
( |
array |
$options = [] | ) |
|
◆ sendAsync()
Commercetools\Client\ApiRequest::sendAsync |
( |
array |
$options = [] | ) |
|
◆ withQueryParam()
Commercetools\Client\ApiRequest::withQueryParam |
( |
string |
$parameterName, |
|
|
|
$value |
|
) |
| |
- Parameters
-
string | $parameterName | @psalm-param scalar|scalar[] $value |
mixed | $value | @psalm-return static |
@psalm-var array<string, scalar[]>
@psalm-param scalar|scalar[] $value @psalm-return scalar[]
Implements Commercetools\Client\ApiRequestInterface.
Definition at line 77 of file ApiRequest.php.
The documentation for this class was generated from the following file: