Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
8 / 8
CRAP
100.00% covered (success)
100.00%
1 / 1
Domain
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
8 / 8
8
100.00% covered (success)
100.00%
1 / 1
 getDomain
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDomain
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDateCreated
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDateCreated
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDnsSec
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDnsSec
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
 getUpdateParams
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\DNS;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds Domain information.
11 */
12class Domain extends Model
13{
14    protected string $domain;
15    protected string $dateCreated;
16    protected string $dnsSec;
17
18    public function getDomain() : string
19    {
20        return $this->domain;
21    }
22
23    public function setDomain(string $domain) : void
24    {
25        $this->domain = $domain;
26    }
27
28    public function getDateCreated() : string
29    {
30        return $this->dateCreated;
31    }
32
33    public function setDateCreated(string $date_created) : void
34    {
35        $this->dateCreated = $date_created;
36    }
37
38    public function getDnsSec() : string
39    {
40        return $this->dnsSec;
41    }
42
43    public function setDnsSec(string $dns_sec) : void
44    {
45        $this->dnsSec = $dns_sec;
46    }
47
48    public function getModelExceptionClass() : string
49    {
50        return str_replace('DomainException', 'DNSException', parent::getModelExceptionClass());
51    }
52
53    public function getUpdateParams() : array
54    {
55        return ['dns_sec'];
56    }
57}
58