mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 14:57:52 +00:00
17 lines
342 B
PHP
17 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;
|
|
}
|
|
}
|