Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
CRAP | |
100.00% |
1 / 1 |
| DNSSOA | |
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
7 | |
100.00% |
1 / 1 |
| getNsPrimary | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setNsPrimary | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getModelExceptionClass | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getUpdateParams | |
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\DNS; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds SOA(start of authority) information. |
| 11 | */ |
| 12 | class DNSSOA extends Model |
| 13 | { |
| 14 | protected string $nsprimary; |
| 15 | protected string $email; |
| 16 | |
| 17 | public function getNsPrimary() : string |
| 18 | { |
| 19 | return $this->nsprimary; |
| 20 | } |
| 21 | |
| 22 | public function setNsPrimary(string $nsprimary) : void |
| 23 | { |
| 24 | $this->nsprimary = $nsprimary; |
| 25 | } |
| 26 | |
| 27 | public function getEmail() : string |
| 28 | { |
| 29 | return $this->email; |
| 30 | } |
| 31 | |
| 32 | public function setEmail(string $email) : void |
| 33 | { |
| 34 | $this->email = $email; |
| 35 | } |
| 36 | |
| 37 | public function getModelExceptionClass() : string |
| 38 | { |
| 39 | return str_replace('DNSSOAException', 'DNSException', parent::getModelExceptionClass()); |
| 40 | } |
| 41 | |
| 42 | public function getUpdateParams() : array |
| 43 | { |
| 44 | return ['nsprimary', 'email']; |
| 45 | } |
| 46 | |
| 47 | public function getResponseName() : string |
| 48 | { |
| 49 | return 'dns_soa'; |
| 50 | } |
| 51 | } |