Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
9 / 9 |
|
100.00% |
9 / 9 |
CRAP | |
100.00% |
1 / 1 |
BareMetalIPv6Info | |
100.00% |
9 / 9 |
|
100.00% |
9 / 9 |
9 | |
100.00% |
1 / 1 |
getIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setIp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getNetwork | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setNetwork | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getNetworkSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setNetworkSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getResponseName | |
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 ipv6 address information on the ip address attached to the baremetal machine. |
11 | */ |
12 | class BareMetalIPv6Info extends Model |
13 | { |
14 | // The response data. |
15 | protected string $ip; |
16 | protected string $network; |
17 | protected int $networkSize; |
18 | protected string $type; |
19 | |
20 | public function getIp() : string |
21 | { |
22 | return $this->ip; |
23 | } |
24 | |
25 | public function setIp(string $ip) : void |
26 | { |
27 | $this->ip = $ip; |
28 | } |
29 | |
30 | public function getNetwork() : string |
31 | { |
32 | return $this->network; |
33 | } |
34 | |
35 | public function setNetwork(string $network) : void |
36 | { |
37 | $this->network = $network; |
38 | } |
39 | |
40 | public function getNetworkSize() : int |
41 | { |
42 | return $this->networkSize; |
43 | } |
44 | |
45 | public function setNetworkSize(int $size) : void |
46 | { |
47 | $this->networkSize = $size; |
48 | } |
49 | |
50 | public function getType() : string |
51 | { |
52 | return $this->type; |
53 | } |
54 | |
55 | public function setType(string $type) : void |
56 | { |
57 | $this->type = $type; |
58 | } |
59 | |
60 | public function getResponseName() : string |
61 | { |
62 | return 'ipv6'; |
63 | } |
64 | } |