class ShadowedRecordFinder (View source)

Finds the records a new zone would hide in its closest existing parent zone.

Delegation data is left out: NS and DS at the new apex, and the A/AAAA glue for the name servers those NS records point at. Records under an existing deeper zone are left out too, since that zone already hides them.

Methods

array|null
closestParent(string $zoneName)

The closest existing zone above the given name, a served root zone last.

hiddenRecords(array $parent, string $zoneName)

No description

Details

__construct(DomainRepositoryInterface $zones, RecordLookupInterface $records)

No description

array|null closestParent(string $zoneName)

The closest existing zone above the given name, a served root zone last.

Only the closest one matters: anything further up is already hidden by it.

Parameters

string $zoneName

Return Value

array|null

ShadowedRecords|null hiddenRecords(array $parent, string $zoneName)

No description

Parameters

array $parent

From closestParent()

string $zoneName

Return Value

ShadowedRecords|null