Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
CRAP | |
100.00% |
1 / 1 |
| InstanceIPv6Info | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
10 | |
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 | |||
| getModelExceptionClass | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Vultr\VultrPhp\Services\Instances; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds instance ipv6 address information |
| 11 | */ |
| 12 | class InstanceIPv6Info extends Model |
| 13 | { |
| 14 | protected string $ip; |
| 15 | protected string $network; |
| 16 | protected int $networkSize; |
| 17 | protected string $type; |
| 18 | |
| 19 | public function getIp() : string |
| 20 | { |
| 21 | return $this->ip; |
| 22 | } |
| 23 | |
| 24 | public function setIp(string $ip) : void |
| 25 | { |
| 26 | $this->ip = $ip; |
| 27 | } |
| 28 | |
| 29 | public function getNetwork() : string |
| 30 | { |
| 31 | return $this->network; |
| 32 | } |
| 33 | |
| 34 | public function setNetwork(string $network) : void |
| 35 | { |
| 36 | $this->network = $network; |
| 37 | } |
| 38 | |
| 39 | public function getNetworkSize() : int |
| 40 | { |
| 41 | return $this->networkSize; |
| 42 | } |
| 43 | |
| 44 | public function setNetworkSize(int $networkSize) : void |
| 45 | { |
| 46 | $this->networkSize = $networkSize; |
| 47 | } |
| 48 | |
| 49 | public function getType() : string |
| 50 | { |
| 51 | return $this->type; |
| 52 | } |
| 53 | |
| 54 | public function setType(string $type) : void |
| 55 | { |
| 56 | $this->type = $type; |
| 57 | } |
| 58 | |
| 59 | public function getResponseName() : string |
| 60 | { |
| 61 | return 'ipv6'; |
| 62 | } |
| 63 | |
| 64 | public function getModelExceptionClass() : string |
| 65 | { |
| 66 | return str_replace('InstanceIPv6InfoException', 'InstanceException', parent::getModelExceptionClass()); |
| 67 | } |
| 68 | } |