mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
23 lines
585 B
PHP
23 lines
585 B
PHP
<?
|
|
use Safe\DateTimeImmutable;
|
|
|
|
class OpdsNavigationEntry{
|
|
public string $Id;
|
|
public string $Url;
|
|
public string $Rel;
|
|
public string $Type;
|
|
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){
|
|
$this->Id = SITE_URL . $url;
|
|
$this->Url = $url;
|
|
$this->Rel = $rel;
|
|
$this->Type = $type;
|
|
$this->Updated = $updated;
|
|
$this->Title = $title;
|
|
$this->Description = $description;
|
|
}
|
|
}
|