Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
15 / 15
100.00% covered (success)
100.00%
15 / 15
CRAP
100.00% covered (success)
100.00%
1 / 1
ReservedIP
100.00% covered (success)
100.00%
15 / 15
100.00% covered (success)
100.00%
15 / 15
15
100.00% covered (success)
100.00%
1 / 1
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRegion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRegion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getIpType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIpType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSubnet
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSubnet
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSubnetSize
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSubnetSize
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLabel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLabel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getInstanceId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setInstanceId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getResponseName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Vultr\VultrPhp\Services\ReservedIP;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds reserved ip address information.
11 */
12class ReservedIP extends Model
13{
14    protected string $id;
15    protected string $region;
16    protected string $ipType;
17    protected string $subnet;
18    protected int $subnetSize;
19    protected string $label;
20    protected string $instanceId;
21
22    public function getId() : string
23    {
24        return $this->id;
25    }
26
27    public function setId(string $id) : void
28    {
29        $this->id = $id;
30    }
31
32    public function getRegion() : string
33    {
34        return $this->region;
35    }
36
37    public function setRegion(string $region) : void
38    {
39        $this->region = $region;
40    }
41
42    public function getIpType() : string
43    {
44        return $this->ipType;
45    }
46
47    public function setIpType(string $ip_type) : void
48    {
49        $this->ipType = $ip_type;
50    }
51
52    public function getSubnet() : string
53    {
54        return $this->subnet;
55    }
56
57    public function setSubnet(string $subnet) : void
58    {
59        $this->subnet = $subnet;
60    }
61
62    public function getSubnetSize() : int
63    {
64        return $this->subnetSize;
65    }
66
67    public function setSubnetSize(int $subnet_size) : void
68    {
69        $this->subnetSize = $subnet_size;
70    }
71
72    public function getLabel() : string
73    {
74        return $this->label;
75    }
76
77    public function setLabel(string $label) : void
78    {
79        $this->label = $label;
80    }
81
82    public function getInstanceId() : string
83    {
84        return $this->instanceId;
85    }
86
87    public function setInstanceId(string $instance_id) : void
88    {
89        $this->instanceId = $instance_id;
90    }
91
92    public function getResponseName() : string
93    {
94        return 'reserved_ip';
95    }
96}