diff options
author | Jimmy Huynh <jimmy.huynh@etu.unistra.fr> | 2021-03-14 23:43:06 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-03-17 08:58:42 +0100 |
commit | 3dfbf64a6bf71634226502b292eee2ce03aa0e85 (patch) | |
tree | 271eaec42765923c22f634be31dda5e0af6b0b83 /lib/Db | |
parent | ef0742e868cd58e992fd14e7bb42518c12d5c87a (diff) |
♻️ Renaming 'tags' into 'categories'
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/Item.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index a987159f8..f72330c2f 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -64,7 +64,7 @@ class Item extends Entity implements IAPI, \JsonSerializable /** @var bool */ protected $starred = false; /** @var string|null */ - protected $tags; + protected $categories; public function __construct() { @@ -87,7 +87,7 @@ class Item extends Entity implements IAPI, \JsonSerializable $this->addType('fingerprint', 'string'); $this->addType('unread', 'boolean'); $this->addType('starred', 'boolean'); - $this->addType('tags', 'string'); + $this->addType('categories', 'string'); } /** @@ -281,9 +281,9 @@ class Item extends Entity implements IAPI, \JsonSerializable /** * @return null|string */ - public function getTags(): ?string + public function getCategories(): ?string { - return $this->tags; + return $this->categories; } /** @@ -516,11 +516,11 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this; } - public function setTags(string $tags = null): self + public function setCategories(string $categories = null): self { - if ($this->tags !== $tags) { - $this->tags = $tags; - $this->markFieldUpdated('tags'); + if ($this->categories !== $categories) { + $this->categories = $categories; + $this->markFieldUpdated('categories'); } return $this; |