diff options
author | rdalverny <rdalverny@gmail.com> | 2022-01-22 19:53:01 +0100 |
---|---|---|
committer | rdalverny <rdalverny@gmail.com> | 2022-01-22 19:53:01 +0100 |
commit | 5a0c2d333ff41ec4da6a4d58bc1553beeee1affa (patch) | |
tree | a6f2f62d76535a2e47085173c560be77b0214e15 /app/classes/PlanetFeed.php | |
parent | c27c9d1d359828a071159995689c9c3b28d99891 (diff) | |
download | planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.gz planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.bz2 planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.xz planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.zip |
More type hints
Diffstat (limited to 'app/classes/PlanetFeed.php')
-rw-r--r-- | app/classes/PlanetFeed.php | 20 |
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) |