libphonenumber\PhoneNumberToTimeZonesMapper::getCountryLevelTimeZonesforNumber PHP Method

getCountryLevelTimeZonesforNumber() protected method

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
return 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;
    }