src/OaiPmh/RecordXmlFormatter.php
protected function getHeaderSetAdditions($setSpec)
    {
        $insert = '';
        foreach ($setSpec as $current) {
            $set = (string)$current;
            if ($this->injectSetSpec) {
                $insert .= $this->createTag($this->injectSetSpec, $set);
            }
            if ($this->injectSetName) {
                $name = $this->setNames[$set] ?? $set;
                $insert .= $this->createTag($this->injectSetName, $name);
            }
        }
        return $insert;
    }
protected function getHeaderSetAdditions($setSpec)
    {
        $insert = '';
        foreach ($setSpec as $current) {
            $set = (string)$current;
            if ($this->injectSetSpec) {
                $insert .= $this->createTag($this->injectSetSpec, $set);
            }
            if ($this->injectSetName) {
                $name = $this->setNames[$set] ?? $set;
                $insert .= $this->createTag($this->injectSetName, $name);
            }
        }
        return $insert;
    }
protected function getHeaderSetAdditions ( $ setSpec ) { $ insert = '' ; foreach ( $ setSpec as $ current ) { $ set = ( string ) $ current ; if ( $ this -> injectSetSpec ) { $ insert .= $ this -> createTag ( $ this -> injectSetSpec , $ set ) ; } if ( $ this -> injectSetName ) { $ name = $ this -> setNames [ $ set ] ?? $ set ; $ insert .= $ this -> createTag ( $ this -> injectSetName , $ name ) ; } } return $ insert ; }
Format setSpec header element as XML tags for inclusion in final record.

@param object $setSpec Header setSpec element (in SimpleXML format).

@return string
Format setSpec header element as XML tags for inclusion in final record .