Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public static function fromTimezone(Name $timezone) : self |
||
33 | { |
||
34 | $timezoneThief = function (Name $timezone) { |
||
35 | return $timezone->timezone; |
||
|
|||
36 | }; |
||
37 | $timezoneThief = Closure::bind($timezoneThief, null, $timezone); |
||
38 | $location = $timezoneThief($timezone)->getLocation(); |
||
39 | return new self( |
||
40 | $location['country_code'], |
||
41 | $location['latitude'], |
||
42 | $location['longitude'], |
||
43 | $location['comments'] |
||
44 | ); |
||
67 |