Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class MxResourceRecord extends ResourceRecord |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | protected $preference; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $exchanger; |
||
21 | |||
22 | 9 | public function __construct( |
|
23 | string $name, |
||
24 | int $ttl, |
||
25 | int $preference, |
||
26 | string $exchanger |
||
27 | ) { |
||
28 | 9 | parent::__construct($name, $ttl); |
|
29 | 9 | $this->preference = $preference; |
|
30 | 9 | $this->exchanger = $exchanger; |
|
31 | 9 | } |
|
32 | |||
33 | 3 | public function getType(): int |
|
36 | } |
||
37 | |||
38 | 6 | public function __toString(): string |
|
43 |