diff --git a/lib/Db/Note.php b/lib/Db/Note.php index bd05850..3407359 100644 --- a/lib/Db/Note.php +++ b/lib/Db/Note.php @@ -11,10 +11,10 @@ use OCP\AppFramework\Db\Entity; * @method string getTitle() * @method void setTitle(string $title) * @method string getContent() - * @method void setContest(string $content) + * @method void setContent(string $content) * @method int getTimestamp() * @method void setTimestamp(int $timestamp) - * @method int geColorId() + * @method int getColorId() * @method void setColorId(int $colorId) * @method bool getPinned() * @method void setPinned(bool $pinned) @@ -61,6 +61,10 @@ class Note extends Entity implements JsonSerializable { $this->tags = $tags; } + public function setAttachts(array $attachts) { + $this->attachts = $attachts; + } + public function jsonSerialize() { return [ 'id' => $this->id,