libphonenumber\MultiFileMetadataSourceImpl::getMetadataForRegion PHP Метод

getMetadataForRegion() публичный Метод

public getMetadataForRegion ( $regionCode )
    public function getMetadataForRegion($regionCode)
    {
        if (!array_key_exists($regionCode, $this->regionToMetadataMap)) {
            // The regionCode here will be valid and won't be '001', so we don't need to worry about
            // what to pass in for the country calling code.
            $this->loadMetadataFromFile($this->currentFilePrefix, $regionCode, 0, $this->metadataLoader);
        }
        return $this->regionToMetadataMap[$regionCode];
    }