mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 17:10:29 +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;
|
|
}
|
|
}
|