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;
    }