LeagueWrap\Api\AbstractApi::extractIds PHP Method

extractIds() protected method

Attempts to extract an ID from the array given.
protected extractIds ( mixed $identities ) : array
$identities mixed
return array
    protected function extractIds($identities)
    {
        $ids = [];
        if (is_array($identities)) {
            foreach ($identities as $identity) {
                $ids[] = $this->extractId($identity);
            }
        } else {
            $ids[] = $this->extractId($identities);
        }
        return $ids;
    }