protected function addWildcardRecord(ResourceRecord $resourceRecord): void
    {
        $labels = explode('.', rtrim($resourceRecord->getName(), '.'));
        $labels = array_reverse($labels);

        $array = &$this->wildcardRecords;
        foreach ($labels as $label) {
            if ('*' === $label) {
                $array[$label][$resourceRecord->getClass()][$resourceRecord->getType()][] = $resourceRecord;
                break;
            }

            $array = &$array[$label];
        }
    }
protected function addWildcardRecord(ResourceRecord $resourceRecord): void
    {
        $labels = explode('.', rtrim($resourceRecord->getName(), '.'));
        $labels = array_reverse($labels);

        $array = &$this->wildcardRecords;
        foreach ($labels as $label) {
            if ('*' === $label) {
                $array[$label][$resourceRecord->getClass()][$resourceRecord->getType()][] = $resourceRecord;
                break;
            }

            $array = &$array[$label];
        }
    }
protected function addWildcardRecord ( ResourceRecord $ resourceRecord ) : void { $ labels = explode ( '.' , rtrim ( $ resourceRecord -> getName ( ) , '.' ) ) ; $ labels = array_reverse ( $ labels ) ; $ array = & $ this -> wildcardRecords ; foreach ( $ labels as $ label ) { if ( '*' === $ label ) { $ array [ $ label ] [ $ resourceRecord -> getClass ( ) ] [ $ resourceRecord -> getType ( ) ] [ ] = $ resourceRecord ; break ; } $ array = & $ array [ $ label ] ; } }
Add a wildcard ResourceRecord.

@param ResourceRecord $resourceRecord
Add a wildcard ResourceRecord .