mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
Continue improving type hints
This commit is contained in:
parent
eb376c87bd
commit
703e1a7a03
73 changed files with 98 additions and 114 deletions
|
@ -5,12 +5,10 @@ use function Safe\file_put_contents;
|
|||
use function Safe\tempnam;
|
||||
use function Safe\unlink;
|
||||
|
||||
/**
|
||||
* @param array<string> $Entries
|
||||
*/
|
||||
class Feed{
|
||||
public string $Url;
|
||||
public string $Title;
|
||||
/** @var array<Ebook|OpdsNavigationEntry> $Entries */
|
||||
public $Entries = [];
|
||||
public string $Path;
|
||||
public ?string $Stylesheet = null;
|
||||
|
@ -20,7 +18,7 @@ class Feed{
|
|||
* @param string $title
|
||||
* @param string $url
|
||||
* @param string $path
|
||||
* @param array<Ebook> $entries
|
||||
* @param array<Ebook|OpdsNavigationEntry> $entries
|
||||
*/
|
||||
public function __construct(string $title, string $url, string $path, array $entries){
|
||||
$this->Url = $url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue