summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-08-24 22:29:35 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-08-25 20:52:48 +0200
commit54630030c35067c168847b3eaf109d93058e586a (patch)
treeb9507a58686635fafa8289f502c90c18793ee7c2 /lib
parentea95ccb378a2c22f3a8865561b723afe155d2f1b (diff)
Add phpstan checks
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/Cron/Updater.php1
-rw-r--r--lib/Db/Item.php18
2 files changed, 17 insertions, 2 deletions
diff --git a/lib/Cron/Updater.php b/lib/Cron/Updater.php
index 66ca4a908..9a65554a9 100644
--- a/lib/Cron/Updater.php
+++ b/lib/Cron/Updater.php
@@ -34,7 +34,6 @@ class Updater extends TimedJob
private $updaterService;
public function __construct(
- ITimeFactroy $time,
Config $config,
StatusService $status,
UpdaterService $updaterService
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;