Moinax\TvDb\Client::getSerie PHP Method

getSerie() public method

Find a tv serie by the id from thetvdb.com
public getSerie ( $serieId, $language = null ) : Serie
return Serie A serie object or false if not found
    public function getSerie($serieId, $language = null)
    {
        $language = $language ?: $this->defaultLanguage;
        $data = $this->fetchXml('series/' . $serieId . '/' . $language . '.xml');
        return new Serie($data->Series);
    }

Usage Example

 public function getShowById($showId)
 {
     $show = $this->tvDb->getSerie($showId);
     return $show->jsonSerialize();
 }