commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Client
Config.php
1
<?php
2
3
declare(strict_types=1);
10
namespace
Commercetools\Api\Client
;
11
12
use
Commercetools\Client\Config
as BaseConfig;
13
14
class
Config
implements
BaseConfig
15
{
16
public
const
API_URI
=
'https://api.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
}
Commercetools\Api\Client\Config
Definition:
Config.php:15
Commercetools\Api\Client\Config\getApiUri
getApiUri()
Definition:
Config.php:36
Commercetools\Api\Client\Config\API_URI
const API_URI
Definition:
Config.php:16
Commercetools\Api\Client\Config\__construct
__construct(array $clientOptions=[], string $baseUri=null)
Definition:
Config.php:25
Commercetools\Api\Client\Config\getOptions
getOptions()
Definition:
Config.php:41
Commercetools\Client\Config
Definition:
Config.php:13
Commercetools\Api\Client
Definition:
ApiRequestBuilder.php:10
Generated by
1.9.1