commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApiRequestInterface.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Client;
11 
13 use GuzzleHttp\ClientInterface;
14 use GuzzleHttp\Exception\GuzzleException;
15 use GuzzleHttp\Promise\PromiseInterface;
16 use Psr\Http\Message\RequestInterface;
17 use Psr\Http\Message\ResponseInterface;
18 
22 interface 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)