| 1 | <?php |
||
| 14 | class NSEC implements RdataInterface |
||
| 15 | { |
||
| 16 | use RdataTrait; |
||
| 17 | |||
| 18 | const TYPE = 'NSEC'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The Next Domain field contains the next owner name (in the canonical |
||
| 22 | * ordering of the zone) that has authoritative data or contains a |
||
| 23 | * delegation point NS RRset. |
||
| 24 | * {@link https://tools.ietf.org/html/rfc4034#section-4.1.1}. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $nextDomainName; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | private $typeBitMaps = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 2 | public function getNextDomainName(): string |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $nextDomainName |
||
| 45 | */ |
||
| 46 | 4 | public function setNextDomainName(string $nextDomainName): void |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $type |
||
| 53 | */ |
||
| 54 | 6 | public function addTypeBitMap(string $type) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Clears the types from the RDATA. |
||
| 61 | */ |
||
| 62 | 2 | public function clearTypeMap(): void |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | 4 | public function getTypeBitMaps(): array |
|
| 74 | |||
| 75 | /** |
||
| 76 | * {@inheritdoc} |
||
| 77 | */ |
||
| 78 | 2 | public function output(): string |
|
| 86 | } |
||
| 87 |