commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ApiRequestInterface.php
1<?php
2
3declare(strict_types=1);
10namespace Commercetools\Client;
11
13use GuzzleHttp\ClientInterface;
14use GuzzleHttp\Exception\GuzzleException;
15use GuzzleHttp\Promise\PromiseInterface;
16use Psr\Http\Message\RequestInterface;
17use Psr\Http\Message\ResponseInterface;
18
22interface ApiRequestInterface extends RequestInterface
23{
30 public function withQueryParam(string $parameterName, $value): ApiRequestInterface;
31
38 public function send(array $options = []): ResponseInterface;
39
46 public function sendAsync(array $options = []): PromiseInterface;
47
48 public function getClient(): ?ClientInterface;
49}
withQueryParam(string $parameterName, $value)