protected static function getAtomEntries(\SimpleXMLElement $entries)
    {
        $items = [];

        foreach ($entries as $entry) {
            $item = [
                'url' => null,
                'originUrl' => null,
                'pubdate' => null,
            ];

            if ($entry->created) {
                $item['pubdate'] = (string) $entry->created;
            } elseif ($entry->updated) {
                $item['pubdate'] = (string) $entry->updated;
            } elseif ($entry->modified) {
                $item['pubdate'] = (string) $entry->modified;
            }

            foreach ($entry->link as $link) {
                $attributes = $link->attributes();

                if (!empty($attributes->href) && ((string) $attributes->rel === 'alternate')) {
                    $item['url'] = (string) $attributes->href;
                    break;
                }
            }

            foreach ($entry->link as $link) {
                $attributes = $link->attributes();

                if (!empty($attributes->href) && ((string) $attributes->rel === 'comments')) {
                    $item['originUrl'] = (string) $attributes->href;
                    break;
                }
            }

            if (!$item['url'] && isset($link)) {
                $attributes = $link->attributes();

                if (!empty($attributes->href)) {
                    $item['url'] = (string) $attributes->href;
                }
            }

            if ($item['url']) {
                $items[] = $item;
            }
        }

        return $items;
    }