From d16203c691b0fe8a43d418f1fcd01063e18bb34d Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Mon, 20 Sep 2021 21:45:37 -0300 Subject: [PATCH] Add more method docs --- lib/Db/Tag.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/Db/Tag.php b/lib/Db/Tag.php index b6a618a..caee739 100644 --- a/lib/Db/Tag.php +++ b/lib/Db/Tag.php @@ -5,16 +5,22 @@ use JsonSerializable; use OCP\AppFramework\Db\Entity; +/** + * @method string getUserId() + * @method void setUserId(string $userId) + * @method string getName() + * @method void setName(string $name) + */ class Tag extends Entity implements JsonSerializable { - protected $name; protected $userId; + protected $name; public function jsonSerialize() { return [ 'id' => $this->id, - 'name' => $this->name, - 'userid' => $this->userId + 'userid' => $this->userId, + 'name' => $this->name ]; }