web/lib/OpdsNavigationEntry.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;
}
}