Skip to content

Commit 98ea4c6

Browse files
authored
Merge pull request #673 from BenMorel/timezone_types
Add types to timezone arrays
2 parents 0ecf954 + f484024 commit 98ea4c6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/PhoneNumberToTimeZonesMapper.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function getUnknownTimeZone()
8181
* the validity of the number passed in.
8282
*
8383
* @param $number PhoneNumber the phone number for which we want to get the time zones to which it belongs
84-
* @return array a list of the corresponding time zones or a single element list with the default
84+
* @return string[] a list of the corresponding time zones or a single element list with the default
8585
* unknown time zone if no other time zone was found or if the number was invalid
8686
*/
8787
public function getTimeZonesForNumber(PhoneNumber $number)
@@ -103,7 +103,7 @@ public function getTimeZonesForNumber(PhoneNumber $number)
103103
* Returns the list of time zones corresponding to the country calling code of {@code number}.
104104
*
105105
* @param $number PhoneNumber the phone number to look up
106-
* @return array the list of corresponding time zones or a single element list with the default
106+
* @return string[] the list of corresponding time zones or a single element list with the default
107107
* unknown time zone if no other time zone was found
108108
*/
109109
protected function getCountryLevelTimeZonesforNumber(PhoneNumber $number)
@@ -120,7 +120,7 @@ protected function getCountryLevelTimeZonesforNumber(PhoneNumber $number)
120120
* for geo-localization.
121121
*
122122
* @param $number PhoneNumber a valid phone number for which we want to get the time zones to which it belongs
123-
* @return array a list of the corresponding time zones or a single element list with the default
123+
* @return string[] a list of the corresponding time zones or a single element list with the default
124124
* unknown time zone if no other time zone was found or if the number was invalid
125125
*/
126126
public function getTimeZonesForGeographicalNumber(PhoneNumber $number)
@@ -132,7 +132,7 @@ public function getTimeZonesForGeographicalNumber(PhoneNumber $number)
132132
* Returns a list of time zones to which a geocodable phone number belongs.
133133
*
134134
* @param PhoneNumber $number The phone number for which we want to get the time zones to which it belongs
135-
* @return array the list of correspondiing time zones or a single element list with the default
135+
* @return string[] the list of corresponding time zones or a single element list with the default
136136
* unknown timezone if no other time zone was found or if the number was invalid
137137
*/
138138
protected function getTimeZonesForGeocodableNumber(PhoneNumber $number)

src/prefixmapper/PrefixTimeZonesMap.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct($map)
2525
* instead of a long.
2626
*
2727
* @param $number PhoneNumber the phone number to look up
28-
* @return array the list of corresponding time zones
28+
* @return string[] the list of corresponding time zones
2929
*/
3030
public function lookupTimeZonesForNumber(PhoneNumber $number)
3131
{
@@ -45,7 +45,7 @@ public function lookupTimeZonesForNumber(PhoneNumber $number)
4545
* input. Also, any of its prefixes, such as 16502, is also valid.
4646
*
4747
* @param $key int the key to look up
48-
* @return array the list of corresponding time zones
48+
* @return string[] the list of corresponding time zones
4949
*/
5050
protected function lookupTimeZonesForNumberKey($key)
5151
{
@@ -64,7 +64,7 @@ protected function lookupTimeZonesForNumberKey($key)
6464
* Split {@code timezonesString} into all the time zones that are part of it.
6565
*
6666
* @param $timezonesString String
67-
* @return array
67+
* @return string[]
6868
*/
6969
protected function tokenizeRawOutputString($timezonesString)
7070
{
@@ -75,7 +75,7 @@ protected function tokenizeRawOutputString($timezonesString)
7575
* Returns the list of time zones {@code number}'s calling country code corresponds to.
7676
*
7777
* @param $number PhoneNumber the phone number to look up
78-
* @return array the list of corresponding time zones
78+
* @return string[] the list of corresponding time zones
7979
*/
8080
public function lookupCountryLevelTimeZonesForNumber(PhoneNumber $number)
8181
{

0 commit comments

Comments
 (0)