Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
24 / 24 |
|
100.00% |
24 / 24 |
CRAP | |
100.00% |
1 / 1 |
VKECluster | |
100.00% |
24 / 24 |
|
100.00% |
24 / 24 |
24 | |
100.00% |
1 / 1 |
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getLabel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setLabel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getClusterSubnet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setClusterSubnet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getServiceSubnet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setServiceSubnet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getEndpoint | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setEndpoint | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getVersion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setVersion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getRegion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setRegion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getNodePools | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setNodePools | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getResponseName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getModelExceptionClass | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\Kubernetes; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds vke cluster information. |
11 | */ |
12 | class VKECluster extends Model |
13 | { |
14 | protected string $id; |
15 | protected string $label; |
16 | protected string $dateCreated; |
17 | protected string $clusterSubnet; |
18 | protected string $serviceSubnet; |
19 | protected string $ip; |
20 | protected string $endpoint; |
21 | protected string $version; |
22 | protected string $region; |
23 | protected string $status; |
24 | |
25 | /** @var NodePool[] */ |
26 | protected array $nodePools; |
27 | |
28 | public function getId() : string |
29 | { |
30 | return $this->id; |
31 | } |
32 | |
33 | public function setId(string $id) : void |
34 | { |
35 | $this->id = $id; |
36 | } |
37 | |
38 | public function getLabel() : string |
39 | { |
40 | return $this->label; |
41 | } |
42 | |
43 | public function setLabel(string $label) : void |
44 | { |
45 | $this->label = $label; |
46 | } |
47 | |
48 | public function getDateCreated() : string |
49 | { |
50 | return $this->dateCreated; |
51 | } |
52 | |
53 | public function setDateCreated(string $dateCreated) : void |
54 | { |
55 | $this->dateCreated = $dateCreated; |
56 | } |
57 | |
58 | public function getClusterSubnet() : string |
59 | { |
60 | return $this->clusterSubnet; |
61 | } |
62 | |
63 | public function setClusterSubnet(string $clusterSubnet) : void |
64 | { |
65 | $this->clusterSubnet = $clusterSubnet; |
66 | } |
67 | |
68 | public function getServiceSubnet() : string |
69 | { |
70 | return $this->serviceSubnet; |
71 | } |
72 | |
73 | public function setServiceSubnet(string $serviceSubnet) : void |
74 | { |
75 | $this->serviceSubnet = $serviceSubnet; |
76 | } |
77 | |
78 | public function getIp() : string |
79 | { |
80 | return $this->ip; |
81 | } |
82 | |
83 | public function setIp(string $ip) : void |
84 | { |
85 | $this->ip = $ip; |
86 | } |
87 | |
88 | public function getEndpoint() : string |
89 | { |
90 | return $this->endpoint; |
91 | } |
92 | |
93 | public function setEndpoint(string $endpoint) : void |
94 | { |
95 | $this->endpoint = $endpoint; |
96 | } |
97 | |
98 | public function getVersion() : string |
99 | { |
100 | return $this->version; |
101 | } |
102 | |
103 | public function setVersion(string $version) : void |
104 | { |
105 | $this->version = $version; |
106 | } |
107 | |
108 | public function getRegion() : string |
109 | { |
110 | return $this->region; |
111 | } |
112 | |
113 | public function setRegion(string $region) : void |
114 | { |
115 | $this->region = $region; |
116 | } |
117 | |
118 | public function getStatus() : string |
119 | { |
120 | return $this->status; |
121 | } |
122 | |
123 | public function setStatus(string $status) : void |
124 | { |
125 | $this->status = $status; |
126 | } |
127 | |
128 | public function getNodePools() : array |
129 | { |
130 | return $this->nodePools; |
131 | } |
132 | |
133 | public function setNodePools(array $nodePools) : void |
134 | { |
135 | $this->nodePools = $nodePools; |
136 | } |
137 | |
138 | public function getResponseName() : string |
139 | { |
140 | return 'vke_cluster'; |
141 | } |
142 | |
143 | public function getModelExceptionClass() : string |
144 | { |
145 | return str_replace('VKEClusterException', 'KubernetesException', parent::getModelExceptionClass()); |
146 | } |
147 | } |
148 |