Add PropertyFromHttp trait and update codebase to use new pattern

This commit is contained in:
Alex Cabal 2024-11-10 22:23:43 -06:00
parent c35c47b793
commit acb30b897c
47 changed files with 851 additions and 527 deletions

View file

@ -6,12 +6,12 @@ class OpdsNavigationEntry{
public string $Url;
public string $Rel;
public string $Type;
public ?DateTimeImmutable $Updated = null;
public DateTimeImmutable $Updated;
public string $Description;
public string $Title;
public string $SortTitle;
public function __construct(string $title, string $description, string $url, ?DateTimeImmutable $updated, string $rel, string $type){
public function __construct(string $title, string $description, string $url, DateTimeImmutable $updated, string $rel, string $type){
$this->Id = SITE_URL . $url;
$this->Url = $url;
$this->Rel = $rel;