commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Client
Config.php
1
<?php
2
3
declare(strict_types=1);
10
namespace
Commercetools\History\Client
;
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
}
Commercetools\History\Client\Config
Definition:
Config.php:15
Commercetools\History\Client\Config\API_URI
const API_URI
Definition:
Config.php:16
Commercetools\History\Client\Config\__construct
__construct(array $clientOptions=[], string $baseUri=null)
Definition:
Config.php:25
Commercetools\History\Client\Config\getOptions
getOptions()
Definition:
Config.php:41
Commercetools\History\Client\Config\getApiUri
getApiUri()
Definition:
Config.php:36
Commercetools\Client\Config
Definition:
Config.php:13
Commercetools\History\Client
Definition:
BaseAuthConfig.php:10
Generated by
1.9.1