Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
InstanceReverseIPv6
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getIp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setIp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getReverse
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setReverse
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
 getModelExceptionClass
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\Instances;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds instance reverse dns ipv6 information.
11 */
12class InstanceReverseIPv6 extends Model
13{
14    protected string $ip;
15    protected string $reverse;
16
17    public function getIp() : string
18    {
19        return $this->ip;
20    }
21
22    public function setIp(string $ip) : void
23    {
24        $this->ip = $ip;
25    }
26
27    public function getReverse() : string
28    {
29        return $this->reverse;
30    }
31
32    public function setReverse(string $reverse) : void
33    {
34        $this->reverse = $reverse;
35    }
36
37    public function getResponseName() : string
38    {
39        return 'reverse_ipv6';
40    }
41
42    public function getModelExceptionClass() : string
43    {
44        return str_replace('InstanceReverseIPv6Exception', 'InstanceException', parent::getModelExceptionClass());
45    }
46}