mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-24 05:08:20 +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;
|
|
}
|
|
}
|