Pop\Feed\Writer::__construct PHP Метод

__construct() публичный Метод

Instantiate the feed object.
public __construct ( array $headers, array $items, mixed $type = Writer::RSS, string $date = 'D, j M Y H:i:s O' ) : Writer
$headers array
$items array
$type mixed
$date string
Результат Writer
    public function __construct($headers, $items, $type = Writer::RSS, $date = 'D, j M Y H:i:s O')
    {
        $this->headers = $headers;
        $this->items = $items;
        $this->feedType = $type;
        $this->dateFormat = $date;
        parent::__construct($this->feedType, 'utf-8');
        $this->init();
    }