1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

refactor: format rendering (#4229)

This commit is contained in:
Dag
2024-08-23 17:34:06 +02:00
committed by GitHub
parent c849576c93
commit 6516e31c1b
12 changed files with 25 additions and 50 deletions

View File

@@ -8,11 +8,10 @@ abstract class FormatAbstract
protected array $feed = [];
protected array $items = [];
protected string $charset = 'UTF-8';
protected int $lastModified;
abstract public function stringify();
abstract public function render(): string;
public function setFeed(array $feed)
{
@@ -50,16 +49,6 @@ abstract class FormatAbstract
return static::MIME_TYPE;
}
public function setCharset(string $charset)
{
$this->charset = $charset;
}
public function getCharset(): string
{
return $this->charset;
}
public function setLastModified(int $lastModified)
{
$this->lastModified = $lastModified;