| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class CNAMEData extends DataAbstract |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var \RemotelyLiving\PHPDNS\Entities\Hostname |
||
| 8 | */ |
||
| 9 | private $hostname; |
||
| 10 | |||
| 11 | public function __construct(Hostname $hostname) |
||
| 12 | { |
||
| 13 | $this->hostname = $hostname; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function __toString(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getHostname(): Hostname |
||
| 22 | { |
||
| 23 | return $this->hostname; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function toArray(): array |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function serialize(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function unserialize($serialized): void |
||
| 44 |