mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Switch from DateTime to DateTimeImmutable across codebase
This commit is contained in:
parent
92c647f2b1
commit
e55fecaaa2
35 changed files with 102 additions and 99 deletions
|
@ -1,15 +1,17 @@
|
|||
<?
|
||||
use Safe\DateTimeImmutable;
|
||||
|
||||
class OpdsNavigationEntry{
|
||||
public string $Id;
|
||||
public string $Url;
|
||||
public string $Rel;
|
||||
public string $Type;
|
||||
public ?DateTime $Updated = null;
|
||||
public ?DateTimeImmutable $Updated = null;
|
||||
public string $Description;
|
||||
public string $Title;
|
||||
public string $SortTitle;
|
||||
|
||||
public function __construct(string $title, string $description, string $url, ?DateTime $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