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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user