mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Add PropertyFromHttp trait and update codebase to use new pattern
This commit is contained in:
parent
c35c47b793
commit
acb30b897c
47 changed files with 851 additions and 527 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue