diff --git a/src/Moinax/TvDb/Banner.php b/src/Moinax/TvDb/Banner.php index 45f128f..5f40fd4 100755 --- a/src/Moinax/TvDb/Banner.php +++ b/src/Moinax/TvDb/Banner.php @@ -42,7 +42,7 @@ class Banner public $language = ''; /** - * @var string + * @var float */ public $rating = ''; @@ -86,7 +86,7 @@ public function __construct($data) $this->type2 = (string)$data->BannerType2; $this->colors = (array)$data->Colors; $this->language = (string)$data->Language; - $this->rating = (string)$data->Rating; + $this->rating = (float)$data->Rating; $this->ratingCount = (int)$data->RatingCount; $this->seriesName = (string)$data->SeriesName; $this->thumbnailPath = (string)$data->ThumbnailPath; diff --git a/src/Moinax/TvDb/Episode.php b/src/Moinax/TvDb/Episode.php index 5d7f21f..fe352cb 100644 --- a/src/Moinax/TvDb/Episode.php +++ b/src/Moinax/TvDb/Episode.php @@ -67,7 +67,7 @@ class Episode public $overview = ''; /** - * @var string + * @var float */ public $rating = ''; @@ -115,7 +115,7 @@ public function __construct($data) $this->imdbId = (string)$data->IMDB_ID; $this->language = (string) $data->Language; $this->overview = (string)$data->Overview; - $this->rating = (string)$data->Rating; + $this->rating = (float)$data->Rating; $this->ratingCount = (int)$data->RatingCount; $this->lastUpdated = \DateTime::createFromFormat('U', (int)$data->lastupdated); $this->writers = (array)Client::removeEmptyIndexes(explode('|', (string)$data->Writer)); diff --git a/src/Moinax/TvDb/Serie.php b/src/Moinax/TvDb/Serie.php index 62ba831..1d9e857 100644 --- a/src/Moinax/TvDb/Serie.php +++ b/src/Moinax/TvDb/Serie.php @@ -76,7 +76,7 @@ class Serie public $network = ''; /** - * @var string + * @var float */ public $rating = ''; @@ -155,8 +155,8 @@ public function __construct($data) $this->contentRating = (string)$data->ContentRating; $this->genres = (array)Client::removeEmptyIndexes(explode('|', (string)$data->Genre)); $this->network = (string)$data->Network; - $this->rating = (string)$data->Rating; - $this->ratingCount = (string)$data->RatingCount; + $this->rating = (float)$data->Rating; + $this->ratingCount = (int)$data->RatingCount; $this->runtime = (int)$data->Runtime; $this->status = (string)$data->Status; $this->added = new \DateTime((string)$data->added);