| Total Complexity | 3 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class SoaResourceRecord extends ResourceRecord |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $nameserver; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $email; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | protected $serialNumber; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | protected $refresh; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var int |
||
| 34 | */ |
||
| 35 | protected $retry; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var int |
||
| 39 | */ |
||
| 40 | protected $expiry; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var int |
||
| 44 | */ |
||
| 45 | protected $negativeCachingTime; |
||
| 46 | |||
| 47 | 9 | public function __construct( |
|
| 48 | string $name, |
||
| 49 | int $ttl, |
||
| 50 | string $nameserver, |
||
| 51 | string $email, |
||
| 52 | int $serialNumber, |
||
| 53 | int $refresh, |
||
| 54 | int $retry, |
||
| 55 | int $expiry, |
||
| 56 | int $negativeCachingTime |
||
| 57 | ) { |
||
| 58 | 9 | parent::__construct($name, $ttl); |
|
| 59 | 9 | $this->nameserver = $nameserver; |
|
| 60 | 9 | $this->email = $email; |
|
| 61 | 9 | $this->serialNumber = $serialNumber; |
|
| 62 | 9 | $this->refresh = $refresh; |
|
| 63 | 9 | $this->retry = $retry; |
|
| 64 | 9 | $this->expiry = $expiry; |
|
| 65 | 9 | $this->negativeCachingTime = $negativeCachingTime; |
|
| 66 | 9 | } |
|
| 67 | |||
| 68 | 3 | public function getType(): int |
|
| 69 | { |
||
| 70 | 3 | return ResourceRecord::TYPE_SOA; |
|
| 71 | } |
||
| 72 | |||
| 73 | 6 | public function __toString(): string |
|
| 82 | } |
||
| 83 | } |
||
| 84 |