summaryrefslogtreecommitdiffstats
path: root/lib/Db/Folder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Folder.php')
-rw-r--r--lib/Db/Folder.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Db/Folder.php b/lib/Db/Folder.php
index 4f54524a8..674c9fabc 100644
--- a/lib/Db/Folder.php
+++ b/lib/Db/Folder.php
@@ -31,6 +31,8 @@ class Folder extends Entity implements IAPI, \JsonSerializable
protected $deletedAt = 0;
/** @var string|null */
protected $lastModified = '0';
+ /** @var Feed[] */
+ public $feeds = [];
/**
* @return int|null
@@ -134,7 +136,7 @@ class Folder extends Entity implements IAPI, \JsonSerializable
}
}
- public function setParentId(int $parentId = null)
+ public function setParentId(int $parentId = 0)
{
if ($this->parentId !== $parentId) {
$this->parentId = $parentId;
@@ -155,7 +157,8 @@ class Folder extends Entity implements IAPI, \JsonSerializable
return $this->serializeFields(
[
'id',
- 'name'
+ 'name',
+ 'feeds'
]
);
}