commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Config.php
1 <?php
2 
3 declare(strict_types=1);
11 
12 use Commercetools\Client\Config as BaseConfig;
13 
14 class Config implements BaseConfig
15 {
16  public const API_URI = 'https://history.europe-west1.gcp.commercetools.com';
17 
18 
20  private $apiUri;
21 
23  private $options;
24 
25  public function __construct(array $clientOptions = [], string $baseUri = null)
26  {
28  $apiUri = $baseUri ?? static::API_URI;
29  $this->apiUri = $apiUri;
30  $this->options = array_replace(
31  [self::OPT_BASE_URI => $this->apiUri],
32  $clientOptions
33  );
34  }
35 
36  public function getApiUri(): string
37  {
38  return $this->apiUri;
39  }
40 
41  public function getOptions(): array
42  {
43  return $this->options;
44  }
45 }
__construct(array $clientOptions=[], string $baseUri=null)
Definition: Config.php:25