src/Common/Internal/Atom/AtomBase.php
protected function processLinkNode($xmlArray)
    {
        $link = [];
        $linkValue = $xmlArray[Resources::LINK];

        if (is_array($linkValue)) {
            /** @var SimpleXMLElement $linkValueInstance */
            foreach ($xmlArray[Resources::LINK] as $linkValueInstance) {
                $linkInstance = new AtomLink();
                $linkInstance->parseXml($linkValueInstance->asXML());
                $link[] = $linkInstance;
            }
        } else {
            $linkInstance = new AtomLink();
            $linkInstance->parseXml($linkValue->asXML());
            $link[] = $linkInstance;
        }

        return $link;
    }
protected function processLinkNode($xmlArray)
    {
        $link = [];
        $linkValue = $xmlArray[Resources::LINK];

        if (is_array($linkValue)) {
            /** @var SimpleXMLElement $linkValueInstance */
            foreach ($xmlArray[Resources::LINK] as $linkValueInstance) {
                $linkInstance = new AtomLink();
                $linkInstance->parseXml($linkValueInstance->asXML());
                $link[] = $linkInstance;
            }
        } else {
            $linkInstance = new AtomLink();
            $linkInstance->parseXml($linkValue->asXML());
            $link[] = $linkInstance;
        }

        return $link;
    }
protected function processLinkNode ( $ xmlArray ) { $ link = [ ] ; $ linkValue = $ xmlArray [ Resources :: LINK ] ; if ( is_array ( $ linkValue ) ) { /** @var SimpleXMLElement $linkValueInstance */ foreach ( $ xmlArray [ Resources :: LINK ] as $ linkValueInstance ) { $ linkInstance = new AtomLink ( ) ; $ linkInstance -> parseXml ( $ linkValueInstance -> asXML ( ) ) ; $ link [ ] = $ linkInstance ; } } else { $ linkInstance = new AtomLink ( ) ; $ linkInstance -> parseXml ( $ linkValue -> asXML ( ) ) ; $ link [ ] = $ linkInstance ; } return $ link ; }
Processes link node.

@param array $xmlArray An array of simple xml elements

@return array
Processes link node .