cache = $cache; $this->url = $url ?: static::URL; } /** * Returns the entries. * * @return array */ public function entries() { return $this->cache->remember('feeds', 2880, function () { return new SimpleXmlElement((new Client())->get($this->url, [ 'headers' => ['Accept' => 'application/rss+xml', 'User-Agent' => defined('CACHET_VERSION') ? 'cachet/'.constant('CACHET_VERSION') : 'cachet'], ])->getBody()->getContents()); }); } }