Skip to content

Commit 0980c7d

Browse files
authored
Merge pull request #235 from php-tmdb/issue/233
Issue with getting languages from a tv show, fixes #233
2 parents 701806e + be1f0c2 commit 0980c7d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/Tmdb/Model/Tv.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Tmdb\Model\Collection\Videos;
2222
use Tmdb\Model\Common\ExternalIds;
2323
use Tmdb\Model\Common\GenericCollection;
24+
use Tmdb\Model\Common\SpokenLanguage;
2425
use Tmdb\Model\Image\BackdropImage;
2526
use Tmdb\Model\Image\PosterImage;
2627
use Tmdb\Model\Tv\Episode;
@@ -162,7 +163,7 @@ class Tv extends AbstractModel
162163
*/
163164
private $inProduction;
164165
/**
165-
* @var array
166+
* @var GenericCollection|SpokenLanguage[]
166167
*/
167168
private $languages;
168169
/**
@@ -256,6 +257,7 @@ public function __construct()
256257
$this->recommendations = new GenericCollection();
257258
$this->contentRatings = new GenericCollection();
258259
$this->alternativeTitles = new GenericCollection();
260+
$this->languages = new GenericCollection();
259261
}
260262

261263
/**
@@ -434,9 +436,9 @@ public function setInProduction($inProduction)
434436
}
435437

436438
/**
437-
* @return array
439+
* @return GenericCollection
438440
*/
439-
public function getLanguages(): array
441+
public function getLanguages(): GenericCollection
440442
{
441443
return $this->languages;
442444
}

0 commit comments

Comments
 (0)