mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 17:15:25 +03:00
16 lines
342 B
PHP
16 lines
342 B
PHP
<?php
|
|
|
|
class PlaintextFormat extends FormatAbstract
|
|
{
|
|
const MIME_TYPE = 'text/plain';
|
|
|
|
public function render(): string
|
|
{
|
|
$feed = $this->getFeed();
|
|
foreach ($this->getItems() as $item) {
|
|
$feed['items'][] = $item->toArray();
|
|
}
|
|
$text = print_r($feed, true);
|
|
return $text;
|
|
}
|
|
}
|