Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
46 / 46 |
|
100.00% |
46 / 46 |
CRAP | |
100.00% |
1 / 1 |
BareMetal | |
100.00% |
46 / 46 |
|
100.00% |
46 / 46 |
46 | |
100.00% |
1 / 1 |
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getOs | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setOs | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getRam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setRam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDisk | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDisk | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getMainIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setMainIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getCpuCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setCpuCount | |
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 | |||
getDefaultPassword | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDefaultPassword | |
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 | |||
getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getNetmaskV4 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setNetmaskV4 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getGatewayV4 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setGatewayV4 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPlan | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setPlan | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getV6Network | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setV6Network | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getV6MainIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setV6MainIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getV6NetworkSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setV6NetworkSize | |
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 | |||
getMacAddress | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setMacAddress | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getOsId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setOsId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getAppId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setAppId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getImageId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setImageId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getFeatures | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setFeatures | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getTags | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setTags | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\BareMetal; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds baremetal information from the response of the api. |
11 | */ |
12 | class BareMetal extends Model |
13 | { |
14 | protected string $id; |
15 | protected string $os; |
16 | protected string $ram; |
17 | protected string $disk; |
18 | protected string $mainIp; |
19 | protected int $cpuCount; |
20 | protected string $region; |
21 | protected ?string $defaultPassword = null; |
22 | protected string $dateCreated; |
23 | protected string $status; |
24 | protected string $netmaskV4; |
25 | protected string $gatewayV4; |
26 | protected string $plan; |
27 | protected string $v6Network; |
28 | protected string $v6MainIp; |
29 | protected int $v6NetworkSize; |
30 | protected string $label; |
31 | protected int $macAddress; |
32 | protected int $osId; |
33 | protected int $appId; |
34 | protected string $imageId; |
35 | protected array $features; |
36 | protected array $tags; |
37 | |
38 | public function getId() : string |
39 | { |
40 | return $this->id; |
41 | } |
42 | |
43 | public function setId(string $id) : void |
44 | { |
45 | $this->id = $id; |
46 | } |
47 | |
48 | public function getOs() : string |
49 | { |
50 | return $this->os; |
51 | } |
52 | |
53 | public function setOs(string $os) : void |
54 | { |
55 | $this->os = $os; |
56 | } |
57 | |
58 | public function getRam() : string |
59 | { |
60 | return $this->ram; |
61 | } |
62 | |
63 | public function setRam(string $ram) : void |
64 | { |
65 | $this->ram = $ram; |
66 | } |
67 | |
68 | public function getDisk() : string |
69 | { |
70 | return $this->disk; |
71 | } |
72 | |
73 | public function setDisk(string $disk) : void |
74 | { |
75 | $this->disk = $disk; |
76 | } |
77 | |
78 | public function getMainIp() : string |
79 | { |
80 | return $this->mainIp; |
81 | } |
82 | |
83 | public function setMainIp(string $main_ip) : void |
84 | { |
85 | $this->mainIp = $main_ip; |
86 | } |
87 | |
88 | public function getCpuCount() : int |
89 | { |
90 | return $this->cpuCount; |
91 | } |
92 | |
93 | public function setCpuCount(int $cpu_count) : void |
94 | { |
95 | $this->cpuCount = $cpu_count; |
96 | } |
97 | |
98 | public function getRegion() : string |
99 | { |
100 | return $this->region; |
101 | } |
102 | |
103 | public function setRegion(string $region) : void |
104 | { |
105 | $this->region = $region; |
106 | } |
107 | |
108 | public function getDefaultPassword() : ?string |
109 | { |
110 | return $this->defaultPassword; |
111 | } |
112 | |
113 | public function setDefaultPassword(?string $default_password) : void |
114 | { |
115 | $this->defaultPassword = $default_password; |
116 | } |
117 | |
118 | public function getDateCreated() : string |
119 | { |
120 | return $this->dateCreated; |
121 | } |
122 | |
123 | public function setDateCreated(string $date_created) : void |
124 | { |
125 | $this->dateCreated = $date_created; |
126 | } |
127 | |
128 | public function getStatus() : string |
129 | { |
130 | return $this->status; |
131 | } |
132 | |
133 | public function setStatus(string $status) : void |
134 | { |
135 | $this->status = $status; |
136 | } |
137 | |
138 | public function getNetmaskV4() : string |
139 | { |
140 | return $this->netmaskV4; |
141 | } |
142 | |
143 | public function setNetmaskV4(string $netmask_v4) : void |
144 | { |
145 | $this->netmaskV4 = $netmask_v4; |
146 | } |
147 | |
148 | public function getGatewayV4() : string |
149 | { |
150 | return $this->gatewayV4; |
151 | } |
152 | |
153 | public function setGatewayV4(string $gateway_v4) : void |
154 | { |
155 | $this->gatewayV4 = $gateway_v4; |
156 | } |
157 | |
158 | public function getPlan() : string |
159 | { |
160 | return $this->plan; |
161 | } |
162 | |
163 | public function setPlan(string $plan) : void |
164 | { |
165 | $this->plan = $plan; |
166 | } |
167 | |
168 | public function getV6Network() : string |
169 | { |
170 | return $this->v6Network; |
171 | } |
172 | |
173 | public function setV6Network(string $v6_network) : void |
174 | { |
175 | $this->v6Network = $v6_network; |
176 | } |
177 | |
178 | public function getV6MainIp() : string |
179 | { |
180 | return $this->v6MainIp; |
181 | } |
182 | |
183 | public function setV6MainIp(string $v6_main_ip) : void |
184 | { |
185 | $this->v6MainIp = $v6_main_ip; |
186 | } |
187 | |
188 | public function getV6NetworkSize() : int |
189 | { |
190 | return $this->v6NetworkSize; |
191 | } |
192 | |
193 | public function setV6NetworkSize(int $v6_network_size) : void |
194 | { |
195 | $this->v6NetworkSize = $v6_network_size; |
196 | } |
197 | |
198 | public function getLabel() : string |
199 | { |
200 | return $this->label; |
201 | } |
202 | |
203 | public function setLabel(string $label) : void |
204 | { |
205 | $this->label = $label; |
206 | } |
207 | |
208 | public function getMacAddress() : int |
209 | { |
210 | return $this->macAddress; |
211 | } |
212 | |
213 | public function setMacAddress(int $mac_address) : void |
214 | { |
215 | $this->macAddress = $mac_address; |
216 | } |
217 | |
218 | public function getOsId() : int |
219 | { |
220 | return $this->osId; |
221 | } |
222 | |
223 | public function setOsId(int $os_id) : void |
224 | { |
225 | $this->osId = $os_id; |
226 | } |
227 | |
228 | public function getAppId() : int |
229 | { |
230 | return $this->appId; |
231 | } |
232 | |
233 | public function setAppId(int $app_id) : void |
234 | { |
235 | $this->appId = $app_id; |
236 | } |
237 | |
238 | public function getImageId() : string |
239 | { |
240 | return $this->imageId; |
241 | } |
242 | |
243 | public function setImageId(string $image_id) : void |
244 | { |
245 | $this->imageId = $image_id; |
246 | } |
247 | |
248 | public function getFeatures() : array |
249 | { |
250 | return $this->features; |
251 | } |
252 | |
253 | public function setFeatures(array $features) : void |
254 | { |
255 | $this->features = $features; |
256 | } |
257 | |
258 | public function getTags() : array |
259 | { |
260 | return $this->tags; |
261 | } |
262 | |
263 | public function setTags(array $tags) : void |
264 | { |
265 | $this->tags = $tags; |
266 | } |
267 | } |