feed = $feedParser->parseFeed($xmlString); $items = array_slice($this->feed['items'], 0, $maxItems); foreach ($items as $item) { // Give bridges a chance to modify the item $item = $this->parseItem($item); if ($item) { $this->items[] = $item; } } } /** * This method is overidden by bridges * * @return array */ protected function parseItem(array $item) { return $item; } public function getURI() { return $this->feed['uri'] ?? parent::getURI(); } public function getName() { return $this->feed['title'] ?? parent::getName(); } public function getIcon() { return $this->feed['icon'] ?? parent::getIcon(); } }