| 1 | <?php |
||
| 5 | class APL implements RdataInterface |
||
| 6 | { |
||
| 7 | use RdataTrait; |
||
| 8 | |||
| 9 | const TYPE = 'APL'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var \IPBlock[] |
||
| 13 | */ |
||
| 14 | private $includedAddressRanges = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \IPBlock[] |
||
| 18 | */ |
||
| 19 | private $excludedAddressRanges = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \IPBlock $ipBlock |
||
| 23 | * @param bool $included True if the resource exists within the range, False if the resource |
||
| 24 | * is not within the range. I.E. the negation. |
||
| 25 | */ |
||
| 26 | 1 | public function addAddressRange(\IPBlock $ipBlock, $included = true): void |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return \IPBlock[] |
||
| 37 | */ |
||
| 38 | public function getIncludedAddressRanges(): array |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return \IPBlock[] |
||
| 45 | */ |
||
| 46 | public function getExcludedAddressRanges(): array |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function output(): string |
|
| 69 | } |
||
| 70 |