From ec6930da8226b9879eb2d7289af739aa96de43ef Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Wed, 28 Oct 2020 21:33:17 +0100 Subject: DB: stop overloading getID Signed-off-by: Sean Molenaar --- lib/Db/Feed.php | 21 --------------------- lib/Db/Folder.php | 15 --------------- lib/Db/Item.php | 15 --------------- 3 files changed, 51 deletions(-) (limited to 'lib/Db') diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php index 80d425117..852de4c78 100644 --- a/lib/Db/Feed.php +++ b/lib/Db/Feed.php @@ -183,14 +183,6 @@ class Feed extends Entity implements IAPI, \JsonSerializable return $this->httpLastModified; } - /** - * @return int - */ - public function getId(): int - { - return $this->id; - } - /** * @return string|null */ @@ -475,19 +467,6 @@ class Feed extends Entity implements IAPI, \JsonSerializable return $this; } - /** - * @param int $id - */ - public function setId(int $id): Feed - { - if ($this->id !== $id) { - $this->id = $id; - $this->markFieldUpdated('id'); - } - - return $this; - } - /** * @param string|null $lastModified */ diff --git a/lib/Db/Folder.php b/lib/Db/Folder.php index e4dbf0fe7..2efd65e96 100644 --- a/lib/Db/Folder.php +++ b/lib/Db/Folder.php @@ -52,11 +52,6 @@ class Folder extends Entity implements IAPI, \JsonSerializable return $this->deletedAt; } - public function getId(): int - { - return $this->id; - } - /** * @return string|null */ @@ -115,16 +110,6 @@ class Folder extends Entity implements IAPI, \JsonSerializable return $this; } - public function setId(int $id): self - { - if ($this->id !== $id) { - $this->id = $id; - $this->markFieldUpdated('id'); - } - - return $this; - } - public function setLastModified(?string $lastModified = null): self { diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 555bcbb61..1dab1b96c 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -222,11 +222,6 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this->guidHash; } - public function getId(): string - { - return $this->id; - } - public function getIntro(): string { return strip_tags($this->getBody()); @@ -440,16 +435,6 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this; } - public function setId(int $id): self - { - if ($this->id !== $id) { - $this->id = $id; - $this->markFieldUpdated('id'); - } - - return $this; - } - public function setLastModified(string $lastModified = null): self { if ($this->lastModified !== $lastModified) { -- cgit v1.2.3