libphonenumber\PhoneNumberToTimeZonesMapper::getCountryLevelTimeZonesforNumber PHP Méthode

getCountryLevelTimeZonesforNumber() protected méthode

Returns the list of time zones corresponding to the country calling code of {@code number}.
protected getCountryLevelTimeZonesforNumber ( PhoneNumber $number ) : array
$number PhoneNumber PhoneNumber the phone number to look up
Résultat array the list of corresponding time zones or a single element list with the default unknown time zone if no other time zone was found
    protected function getCountryLevelTimeZonesforNumber(PhoneNumber $number)
    {
        $timezones = $this->prefixTimeZonesMap->lookupCountryLevelTimeZonesForNumber($number);
        return count($timezones) == 0 ? $this->unknownTimeZoneList : $timezones;
    }