Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | protected function hydrate(Position $position, Fluent $location) |
||
23 | { |
||
24 | $position->countryName = $location->country; |
||
25 | $position->countryCode = $location->countryCode; |
||
26 | $position->regionCode = $location->region; |
||
27 | $position->regionName = $location->regionName; |
||
28 | $position->cityName = $location->city; |
||
29 | $position->zipCode = $location->zip; |
||
30 | $position->latitude = (string) $location->lat; |
||
31 | $position->longitude = (string) $location->lon; |
||
32 | $position->areaCode = $location->region; |
||
33 | |||
34 | return $position; |
||
35 | } |
||
51 |