diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-08-24 22:29:35 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2020-08-25 20:52:48 +0200 |
commit | 54630030c35067c168847b3eaf109d93058e586a (patch) | |
tree | b9507a58686635fafa8289f502c90c18793ee7c2 /lib/Db | |
parent | ea95ccb378a2c22f3a8865561b723afe155d2f1b (diff) |
Add phpstan checks
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/Item.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 3dedd308d..ae2bb4d17 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -77,7 +77,7 @@ class Item extends Entity implements IAPI, \JsonSerializable public static function fromImport($import): Item { - $item = new static(); + $item = new Item(); $item->setGuid($import['guid']); $item->setGuidHash($import['guid']); $item->setUrl($import['url']); @@ -147,6 +147,22 @@ class Item extends Entity implements IAPI, \JsonSerializable /** * @return null|string */ + public function getMediaThumbnail() + { + return $this->mediaThumbnail; + } + + /** + * @return null|string + */ + public function getMediaDescription() + { + return $this->mediaDescription; + } + + /** + * @return null|string + */ public function getEnclosureMime() { return $this->enclosureMime; |