Repository navigation
Expand file tree
/
Copy pathNetworkingConfig.php
More file actions
62 lines (53 loc) · 1.8 KB
/
Copy pathNetworkingConfig.php
File metadata and controls
62 lines (53 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
declare(strict_types=1);
namespace Docker\API\Model;
use Docker\API\Runtime\AdditionalAndPatternProperties;
use Docker\API\Runtime\AdditionalPropertiesInterface;
class NetworkingConfig implements AdditionalPropertiesInterface
{
use AdditionalAndPatternProperties;
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* A mapping of network name to endpoint configuration for that network.
* The endpoint configuration can be left empty to connect to that
* network with no particular endpoint configuration.
*
* @var array<string, EndpointSettings>|null
*/
protected $endpointsConfig;
/**
* A mapping of network name to endpoint configuration for that network.
* The endpoint configuration can be left empty to connect to that
* network with no particular endpoint configuration.
*
* @return array<string, EndpointSettings>|null
*/
public function getEndpointsConfig(): ?iterable
{
return $this->endpointsConfig;
}
/**
* A mapping of network name to endpoint configuration for that network.
* The endpoint configuration can be left empty to connect to that
* network with no particular endpoint configuration.
*
* @param array<string, EndpointSettings>|null $endpointsConfig
*/
public function setEndpointsConfig(?iterable $endpointsConfig): self
{
$this->initialized['endpointsConfig'] = true;
$this->endpointsConfig = $endpointsConfig;
return $this;
}
public function definedProperties(): array
{
return ['endpointsConfig' => ['EndpointsConfig', 'getEndpointsConfig', 'setEndpointsConfig']];
}
}