summaryrefslogtreecommitdiffstats
path: root/app/classes/PlanetFeed.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/classes/PlanetFeed.php')
-rw-r--r--app/classes/PlanetFeed.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/classes/PlanetFeed.php b/app/classes/PlanetFeed.php
index 6cd6b08..39fbe75 100644
--- a/app/classes/PlanetFeed.php
+++ b/app/classes/PlanetFeed.php
@@ -6,10 +6,10 @@
class PlanetFeed extends SimplePie
{
- public $name;
- public $feed;
- public $website;
- public $isDown;
+ public string $name;
+ public string $feed;
+ public string $website;
+ public string $isDown;
public function __construct($name, $feed, $website, $isDown)
{
@@ -46,22 +46,22 @@ class PlanetFeed extends SimplePie
]);
}
- public function getFeed()
+ public function getFeed() : string
{
return $this->feed;
}
- public function getName()
+ public function getName() : string
{
return $this->name;
}
- public function getWebsite()
+ public function getWebsite() : string
{
return $this->website;
}
- public function getIsDown()
+ public function getIsDown() : string
{
return $this->isDown;
}
@@ -69,8 +69,8 @@ class PlanetFeed extends SimplePie
/**
* Compare two Person by their name.
*
- * @param $person1
- * @param $person2
+ * @param PlanetFeed $person1
+ * @param PlanetFeed $person2
* @return int
*/
public static function compare($person1, $person2)