diff options
author | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-16 17:01:53 +0100 |
---|---|---|
committer | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-16 17:01:53 +0100 |
commit | 58ce95a255c04e1b6ecac0d794bc4dbeb23871de (patch) | |
tree | 4205d2da15a4e92dfb8ad59a112ef3d2e1c2c143 /app/classes/Opml.php | |
parent | 9d3f003ba2ab29ef6a790535cc586ca20d555d15 (diff) | |
download | planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.gz planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.bz2 planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.xz planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.zip |
Add test coverage, add tests, refactor OPML code
Diffstat (limited to 'app/classes/Opml.php')
-rw-r--r-- | app/classes/Opml.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/classes/Opml.php b/app/classes/Opml.php index c5f185f..b91b43e 100644 --- a/app/classes/Opml.php +++ b/app/classes/Opml.php @@ -9,6 +9,9 @@ class Opml public string $ownerEmail = ''; public string $ownerId = ''; + public string $dateCreated = ''; + public string $dateModified = ''; + public string $title = ''; /** @var array<int, string> */ @@ -21,7 +24,7 @@ class Opml 'TITLE' => 'name', 'XMLURL' => 'feed', 'DESCRIPTION' => 'description', - 'ISDOWN' => 'isDown' + 'ISDOWN' => 'isDown', ); @@ -81,6 +84,12 @@ class Opml case 'OWNERID': $this->ownerId = $cdata; break; + case 'DATECREATED': + $this->dateCreated = $cdata; + break; + case 'DATEMODIFIED': + $this->dateModified = $cdata; + break; } } |