private function processResourceName(\ArrayIterator $iterator, ResourceRecord $resourceRecord): void
    {
        if ($this->isResourceName($iterator)) {
            $this->previousName = $iterator->current();
            $iterator->next();
        }

        $resourceRecord->setName($this->previousName);
    }
private function processResourceName(\ArrayIterator $iterator, ResourceRecord $resourceRecord): void
    {
        if ($this->isResourceName($iterator)) {
            $this->previousName = $iterator->current();
            $iterator->next();
        }

        $resourceRecord->setName($this->previousName);
    }
private function processResourceName ( \ ArrayIterator $ iterator , ResourceRecord $ resourceRecord ) : void { if ( $ this -> isResourceName ( $ iterator ) ) { $ this -> previousName = $ iterator -> current ( ) ; $ iterator -> next ( ) ; } $ resourceRecord -> setName ( $ this -> previousName ) ; }
Processes a ResourceRecord name.

@param \ArrayIterator $iterator
@param ResourceRecord $resourceRecord
Processes a ResourceRecord name .