Continue improving type hints

This commit is contained in:
Alex Cabal 2024-05-10 22:28:24 -05:00
parent eb376c87bd
commit 703e1a7a03
73 changed files with 98 additions and 114 deletions

View file

@ -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;