diff --git a/lib/Tmdb/Model/Tv.php b/lib/Tmdb/Model/Tv.php index 5e7b032c..33c55538 100644 --- a/lib/Tmdb/Model/Tv.php +++ b/lib/Tmdb/Model/Tv.php @@ -21,6 +21,7 @@ use Tmdb\Model\Collection\Videos; use Tmdb\Model\Common\ExternalIds; use Tmdb\Model\Common\GenericCollection; +use Tmdb\Model\Common\SpokenLanguage; use Tmdb\Model\Image\BackdropImage; use Tmdb\Model\Image\PosterImage; use Tmdb\Model\Tv\Episode; @@ -162,7 +163,7 @@ class Tv extends AbstractModel */ private $inProduction; /** - * @var array + * @var GenericCollection|SpokenLanguage[] */ private $languages; /** @@ -256,6 +257,7 @@ public function __construct() $this->recommendations = new GenericCollection(); $this->contentRatings = new GenericCollection(); $this->alternativeTitles = new GenericCollection(); + $this->languages = new GenericCollection(); } /** @@ -434,9 +436,9 @@ public function setInProduction($inProduction) } /** - * @return array + * @return GenericCollection */ - public function getLanguages(): array + public function getLanguages(): GenericCollection { return $this->languages; }