mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Completely type hint template functions and switch to named arguments
This commit is contained in:
parent
6108b5e53d
commit
124e8343fc
125 changed files with 542 additions and 450 deletions
|
@ -3,6 +3,9 @@ use function Safe\file_get_contents;
|
|||
use function Safe\filesize;
|
||||
use function Safe\preg_replace;
|
||||
|
||||
/**
|
||||
* @property array<Ebook> $Entries
|
||||
*/
|
||||
class RssFeed extends Feed{
|
||||
public string $Description;
|
||||
|
||||
|
@ -21,7 +24,7 @@ class RssFeed extends Feed{
|
|||
// *******
|
||||
|
||||
protected function GetXmlString(): string{
|
||||
return $this->_XmlString ??= $this->CleanXmlString(Template::RssFeed(['url' => $this->Url, 'description' => $this->Description, 'title' => $this->Title, 'entries' => $this->Entries, 'updated' => NOW]));
|
||||
return $this->_XmlString ??= $this->CleanXmlString(Template::RssFeed(url: $this->Url, description: $this->Description, title: $this->Title, entries: $this->Entries, updated: NOW));
|
||||
}
|
||||
|
||||
public function SaveIfChanged(): bool{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue