| Total Complexity | 11 |
| Total Lines | 86 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | trait RdataTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | 43 | public function getType(): string |
|
| 22 | { |
||
| 23 | /* @const TYPE */ |
||
| 24 | 43 | return static::TYPE; |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 15 | public function getTypeCode(): int |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Encode a domain name as a sequence of labels. |
||
| 38 | * |
||
| 39 | * @param string $name |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 32 | public static function encodeName(string $name): string |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $string |
||
| 61 | * @param int $offset |
||
| 62 | * |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | 24 | public static function decodeName(string $string, int &$offset = 0): string |
|
| 104 |