Returns statistics about how many seasons & episodes were aired.

@param int $id The series id.

@return SeriesStatistics Statistics on the given series.
778227
public function getEpisodesSummary(int $id): SeriesStatistics
    {
        $json = $this->parent->performAPICallWithJsonResponse('get', '/series/'.$id.'/episodes/summary');

        return DataParser::parseData($json, SeriesStatistics::class);
    }
89780
public function filterId($id)
    {
        if (1 === count($this->data)) {
            return array_shift($this->data);
        }

        $result = $this->filter(
            function ($key, $value) use ($id) {
                if ($value->getId() == $id) {
                    return true;
                }
            }
        );

        if (!count($result)) {
            return null;
        }

        $collection = $result->getAll();

        return array_shift($collection);
    }
879018
public function getResult($id)
    {
        return isset($this->results[$id]) ? $this->results[$id] : null;
    }
1138855
public function accountsChartsTypesByCountry($id)
  {
    return $this->AccountChartType->where(function($query) use ($id)
      {
        $query->orWhere('country_id', '=', $id);
        $query->orWhereNull('country_id');
      })->get();
  }
1318908
protected function _getMetadatas($id)
    {
        if (isset($this->_metadatasArray[$id])) {
            return $this->_metadatasArray[$id];
        } else {
            $metadatas = $this->_loadMetadatas($id);
            if (!$metadatas) {
                return false;
            }
            $this->_setMetadatas($id, $metadatas, false);
            return $metadatas;
        }
    }
1016403
public function getEpisodesByAirdate($ID, $airdate)
	{
		$url = self::APIURL . '/shows/' . $ID . '/episodesbydate?date=' . date('Y-m-d', strtotime($airdate));
		$episodes = $this->getFile($url);

		$allEpisodes = [];
		if (is_array($episodes)) {
			foreach ($episodes as $episode) {
				$ep = new Episode($episode);
				$allEpisodes[] = $ep;
			}
		}
		return $allEpisodes;
	}
221235
public AggregatedStats getAggregatedStats(long id, GameMode gameMode, Season season) {
        return client.sendRpcAndWait(SERVICE, "getAggregatedStats", id, gameMode, season.numeric);
    }
553001
def get_series_by_id(self, series_id):
        
        try:
            return self.api.get_series(series_id), None
        except exceptions.TVDBRequestException as err:
            LOG.exception('search for series %s failed', series_id)
            return None, _as_str(err)
716453
public function getReport($id = null)
    {
        if ($id === null) {
            $id = $this->id;
        }

        return array('runId' => $id, 'report' => sprintf('%s?run=%s&source=%s', $this->host, $id, $this->namespace));
    }
824732
public function where_id_is($id)
        {
            return (Arrays::is($this->_getIdColumnName())) ?
                $this->where($this->_getCompoundIdColumnValues($id), null) :
                $this->where($this->_getIdColumnName(), $id);
        }
206610
public function get_from_id(int $id) {
        $records = $this->get_from_ids([$id]);
        return count($records) ? array_shift($records) : null;
    }
215933
public function getShowByTvdbId($tvdbId)
  {
    $response = $this->request('/GetShowByTVDBID/' . $tvdbId);
    if ( $response->response->status == 'false' )
      return null;
    $show     = $this->formatShow($response->response);

    return $show;
  }
1156694
public function getCrewCreditsByID($ID){
		$url = self::APIURL.'/people/'.$ID.'/crewcredits?embed=show';
		$crewCredit = $this->getFile($url);

		$shows_appeared = [];
		foreach($crewCredit as $series){
			$position = $series['type'];
			$TVShow = new TVShow($series['_embedded']['show']);
			$shows_appeared[] = [$position, $TVShow];
		}
		return $shows_appeared;
	}
787609
protected function check4details($id)
    {
        $objC4D = \Database::getInstance()->prepare("SELECT count(`id`)  AS num
                                                     FROM `tl_dlstatdets`
                                                     WHERE `pid`=?")
                                          ->execute($id);
        return $objC4D->num;
    }
184534
public function AnimeForum(int $id): array
    {
        return $this->myanimelist->getAnimeForum(
            new Request\Anime\AnimeForumRequest($id)
        );
    }
943795
public function getGenre($id)
    {
        foreach ($this->data as $genre) {
            if ($id === $genre->getId()) {
                return $genre;
            }
        }

        return null;
    }
217408
public function getAccountStates(
        $tvshow_id,
        $season_number,
        $episode_number
    ) {
        return $this->get(
            sprintf(
                'tv/%s/season/%s/episode/%s/account_states',
                $tvshow_id,
                $season_number,
                $episode_number
            )
        );
    }