forked from beluga-php/docker-php-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetworkAttachmentConfig.php
More file actions
89 lines (77 loc) · 1.78 KB
/
Copy pathNetworkAttachmentConfig.php
File metadata and controls
89 lines (77 loc) · 1.78 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
declare(strict_types=1);
namespace Docker\API\Model;
class NetworkAttachmentConfig
{
/**
* The target network for attachment. Must be a network name or ID.
*
* @var string|null
*/
protected $target;
/**
* Discoverable alternate names for the service on this network.
*
* @var string[]|null
*/
protected $aliases;
/**
* Driver attachment options for the network target.
*
* @var string[]|null
*/
protected $driverOpts;
/**
* The target network for attachment. Must be a network name or ID.
*/
public function getTarget(): ?string
{
return $this->target;
}
/**
* The target network for attachment. Must be a network name or ID.
*/
public function setTarget(?string $target): self
{
$this->target = $target;
return $this;
}
/**
* Discoverable alternate names for the service on this network.
*
* @return string[]|null
*/
public function getAliases(): ?array
{
return $this->aliases;
}
/**
* Discoverable alternate names for the service on this network.
*
* @param string[]|null $aliases
*/
public function setAliases(?array $aliases): self
{
$this->aliases = $aliases;
return $this;
}
/**
* Driver attachment options for the network target.
*
* @return string[]|null
*/
public function getDriverOpts(): ?iterable
{
return $this->driverOpts;
}
/**
* Driver attachment options for the network target.
*
* @param string[]|null $driverOpts
*/
public function setDriverOpts(?iterable $driverOpts): self
{
$this->driverOpts = $driverOpts;
return $this;
}
}