libphonenumber\prefixmapper\PrefixTimeZonesMap::lookupTimeZonesForNumberKey PHP Method

lookupTimeZonesForNumberKey() protected method

{@code key} could be the calling country code and the full significant number of a certain number, or it could be just a phone-number prefix. For example, the full number 16502530000 (from the phone-number +1 650 253 0000) is a valid input. Also, any of its prefixes, such as 16502, is also valid.

protected lookupTimeZonesForNumberKey ( $key ) : array
$key int the key to look up
return array the list of corresponding time zones
    protected function lookupTimeZonesForNumberKey($key)
    {
        // Lookup in the map data. The returned String may consist of several time zones, so it must be
        // split.
        $timezonesString = $this->phonePrefixMap->lookupKey($key);
        if ($timezonesString === null) {
            return array();
        }
        return $this->tokenizeRawOutputString($timezonesString);
    }