mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -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
|
@ -26,7 +26,9 @@ class AtomFeed extends Feed{
|
|||
|
||||
protected function GetXmlString(): string{
|
||||
if(!isset($this->_XmlString)){
|
||||
$feed = Template::AtomFeed(['id' => $this->Id, 'url' => $this->Url, 'title' => $this->Title, 'subtitle' => $this->Subtitle, 'updated' => $this->Updated, 'entries' => $this->Entries]);
|
||||
/** @var array<Ebook> $entries */
|
||||
$entries = $this->Entries;
|
||||
$feed = Template::AtomFeed(id: $this->Id, url: $this->Url, title: $this->Title, subtitle: $this->Subtitle, updated: $this->Updated, entries: $entries);
|
||||
|
||||
$this->_XmlString = $this->CleanXmlString($feed);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue