Ipalaus\Geonames\Commands\ImportCommand::setCountry PHP Method

setCountry() protected method

Sets the name file to a specific country.
protected setCountry ( string $country ) : void
$country string
return void
    protected function setCountry($country)
    {
        if (strlen($country) > 2) {
            throw new RuntimeException('Country format must be in ISO Alpha 2 code.');
        }
        $this->config['files']['names'] = sprintf($this->config['wildcard'], strtoupper($country));
        unset($this->config['files']['alternate']);
    }