summaryrefslogtreecommitdiffstats
path: root/lib/Db/Folder.php
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2020-10-09 11:17:44 +0000
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-10-09 13:59:23 +0200
commita74491ecdefb022c3cd9712ae46bff7a71c8eade (patch)
tree9594db890cdfed05e40259d1211e065345fc0c4f /lib/Db/Folder.php
parentc6cef6c4accf633ca526ded6f5ad2ad47edd4716 (diff)
Add Type Info to Entities
Signed-off-by: Tilo Spannagel <development@tilosp.de>
Diffstat (limited to 'lib/Db/Folder.php')
-rw-r--r--lib/Db/Folder.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Db/Folder.php b/lib/Db/Folder.php
index ec9d27477..e4dbf0fe7 100644
--- a/lib/Db/Folder.php
+++ b/lib/Db/Folder.php
@@ -34,6 +34,16 @@ class Folder extends Entity implements IAPI, \JsonSerializable
/** @var Feed[] */
public $feeds = [];
+ public function __construct()
+ {
+ $this->addType('parentId', 'integer');
+ $this->addType('name', 'string');
+ $this->addType('userId', 'string');
+ $this->addType('opened', 'boolean');
+ $this->addType('deletedAt', 'integer');
+ $this->addType('lastModified', 'string');
+ }
+
/**
* @return int|null
*/