Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | final class MXData extends DataAbstract implements \Stringable |
||
9 | { |
||
10 | public function __construct(private Hostname $target, private int $priority = 0) |
||
11 | { |
||
12 | } |
||
13 | |||
14 | public function __toString(): string |
||
17 | } |
||
18 | |||
19 | public function getTarget(): Hostname |
||
20 | { |
||
21 | return $this->target; |
||
22 | } |
||
23 | |||
24 | public function getPriority(): int |
||
25 | { |
||
26 | return $this->priority; |
||
27 | } |
||
28 | |||
29 | public function toArray(): array |
||
34 | ]; |
||
35 | } |
||
36 | |||
37 | public function __unserialize(array $unserialized): void |
||
43 |