libphonenumber\PhoneNumberUtil::hasValidCountryCallingCode PHP Method

hasValidCountryCallingCode() protected method

Helper function to check the country calling code is valid.
protected hasValidCountryCallingCode ( integer $countryCallingCode ) : boolean
$countryCallingCode integer
return boolean
    protected function hasValidCountryCallingCode($countryCallingCode)
    {
        return isset($this->countryCallingCodeToRegionCodeMap[$countryCallingCode]);
    }
PhoneNumberUtil