@@ 57-74 (lines=18) @@ | ||
54 | * |
|
55 | * @return Place |
|
56 | */ |
|
57 | public function hydratePlace(array $data) |
|
58 | { |
|
59 | $place = new Place(); |
|
60 | ||
61 | $this->setPlaceId($place, $data); |
|
62 | $this->setName($place, $data); |
|
63 | $this->setLocation($place, $data); |
|
64 | $this->setTypes($place, $data); |
|
65 | $this->setVicinity($place, $data); |
|
66 | $this->setFormattedAddress($place, $data); |
|
67 | $this->setFormattedPhoneNumber($place, $data); |
|
68 | $this->setIcon($place, $data); |
|
69 | $this->setInternationalPhoneNumber($place, $data); |
|
70 | $this->setUrl($place, $data); |
|
71 | $this->setWebsite($place, $data); |
|
72 | ||
73 | return $place; |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * @param Place $place |
@@ 16-33 (lines=18) @@ | ||
13 | * |
|
14 | * @return array |
|
15 | */ |
|
16 | public function serialize(Place $place) |
|
17 | { |
|
18 | $data = []; |
|
19 | ||
20 | $this->setId($place, $data); |
|
21 | $this->setName($place, $data); |
|
22 | $this->setLocation($place, $data); |
|
23 | $this->setTypes($place, $data); |
|
24 | $this->setIcon($place, $data); |
|
25 | $this->setVicinity($place, $data); |
|
26 | $this->setFormattedAddress($place, $data); |
|
27 | $this->setFormattedPhoneNumber($place, $data); |
|
28 | $this->setInternationalPhoneNumber($place, $data); |
|
29 | $this->setUrl($place, $data); |
|
30 | $this->setWebsite($place, $data); |
|
31 | ||
32 | return $data; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @param Place $place |