Alcohol\ISO3166\ISO3166::getByNumeric PHP 메소드

getByNumeric() 공개 메소드

Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
public getByNumeric ( string $numeric ) : array
$numeric string
리턴 array
    public function getByNumeric($numeric)
    {
        if (!preg_match('/^[0-9]{3}$/', $numeric)) {
            throw new \DomainException('Not a valid numeric: ' . $numeric);
        }
        return $this->get($numeric);
    }