Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Feed.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
8 namespace Magento\Framework\App;
9 
10 use Zend\Feed\Writer\FeedFactory;
11 
15 class Feed implements FeedInterface
16 {
20  private $feeds;
21 
26  public function __construct(array $data)
27  {
28  $this->feeds = $data;
29  }
30 
34  public function getFormattedContent() : string
35  {
36  return FeedFactory::factory($this->feeds)->export(FeedFactoryInterface::FORMAT_RSS);
37  }
38 }
__construct(array $data)
Definition: Feed.php:26