public function getCredits($tvShow, $season, array $parameters = [], array $headers = [])
    {
        if ($tvShow instanceof Tv) {
            $tvShow = $tvShow->getId();
        }

        if ($season instanceof Season) {
            $season = $season->getSeasonNumber();
        }

        $data   = $this->getApi()->getCredits($tvShow, $season, $this->parseQueryParameters($parameters), $headers);
        $season = $this->getFactory()->create(['credits' => $data]);

        return $season->getCredits();
    }
public function getCredits($tvShow, $season, array $parameters = [], array $headers = [])
    {
        if ($tvShow instanceof Tv) {
            $tvShow = $tvShow->getId();
        }

        if ($season instanceof Season) {
            $season = $season->getSeasonNumber();
        }

        $data   = $this->getApi()->getCredits($tvShow, $season, $this->parseQueryParameters($parameters), $headers);
        $season = $this->getFactory()->create(['credits' => $data]);

        return $season->getCredits();
    }
public function getCredits ( $ tvShow , $ season , array $ parameters = [ ] , array $ headers = [ ] ) { if ( $ tvShow instanceof Tv ) { $ tvShow = $ tvShow -> getId ( ) ; } if ( $ season instanceof Season ) { $ season = $ season -> getSeasonNumber ( ) ; } $ data = $ this -> getApi ( ) -> getCredits ( $ tvShow , $ season , $ this -> parseQueryParameters ( $ parameters ) , $ headers ) ; $ season = $ this -> getFactory ( ) -> create ( [ 'credits' => $ data ] ) ; return $ season -> getCredits ( ) ; }
Get the cast & crew information about a TV series.

Just like the website, we pull this information from the last season of the series.

@param $tvShow
@param $season
@param $parameters
@param $headers
@return null|\Tmdb\Model\AbstractModel
Get the cast & crew information about a TV series .