src/Common/Internal/Atom/AtomBase.php
protected function processContributorNode($xmlArray)
    {
        $contributor = [];
        $contributorItem = $xmlArray[Resources::CONTRIBUTOR];

        if (is_array($contributorItem)) {
            /** @var SimpleXMLElement $contributorXmlInstance */
            foreach ($xmlArray[Resources::CONTRIBUTOR] as $contributorXmlInstance) {
                $contributorInstance = new Person();
                $contributorInstance->parseXml($contributorXmlInstance->asXML());
                $contributor[] = $contributorInstance;
            }
        } elseif (is_string($contributorItem)) {
            $contributorInstance = new Person();
            $contributorInstance->setName((string) $contributorItem);
            $contributor[] = $contributorInstance;
        } else {
            $contributorInstance = new Person();
            $contributorInstance->parseXml($contributorItem->asXML());
            $contributor[] = $contributorInstance;
        }

        return $contributor;
    }
protected function processContributorNode($xmlArray)
    {
        $contributor = [];
        $contributorItem = $xmlArray[Resources::CONTRIBUTOR];

        if (is_array($contributorItem)) {
            /** @var SimpleXMLElement $contributorXmlInstance */
            foreach ($xmlArray[Resources::CONTRIBUTOR] as $contributorXmlInstance) {
                $contributorInstance = new Person();
                $contributorInstance->parseXml($contributorXmlInstance->asXML());
                $contributor[] = $contributorInstance;
            }
        } elseif (is_string($contributorItem)) {
            $contributorInstance = new Person();
            $contributorInstance->setName((string) $contributorItem);
            $contributor[] = $contributorInstance;
        } else {
            $contributorInstance = new Person();
            $contributorInstance->parseXml($contributorItem->asXML());
            $contributor[] = $contributorInstance;
        }

        return $contributor;
    }
protected function processContributorNode ( $ xmlArray ) { $ contributor = [ ] ; $ contributorItem = $ xmlArray [ Resources :: CONTRIBUTOR ] ; if ( is_array ( $ contributorItem ) ) { /** @var SimpleXMLElement $contributorXmlInstance */ foreach ( $ xmlArray [ Resources :: CONTRIBUTOR ] as $ contributorXmlInstance ) { $ contributorInstance = new Person ( ) ; $ contributorInstance -> parseXml ( $ contributorXmlInstance -> asXML ( ) ) ; $ contributor [ ] = $ contributorInstance ; } } elseif ( is_string ( $ contributorItem ) ) { $ contributorInstance = new Person ( ) ; $ contributorInstance -> setName ( ( string ) $ contributorItem ) ; $ contributor [ ] = $ contributorInstance ; } else { $ contributorInstance = new Person ( ) ; $ contributorInstance -> parseXml ( $ contributorItem -> asXML ( ) ) ; $ contributor [ ] = $ contributorInstance ; } return $ contributor ; }
Processes contributor node.

@param array $xmlArray An array of simple xml elements

@return Person[]
Processes contributor node .