mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 22:59:46 +02:00
refactor: format rendering (#4229)
This commit is contained in:
parent
c849576c93
commit
6516e31c1b
12 changed files with 25 additions and 50 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue