1 | <?php |
||
14 | class Place extends Thing |
||
15 | { |
||
16 | /** |
||
17 | * @var PostalAddress Physical address of the item. |
||
18 | */ |
||
19 | protected $address; |
||
20 | /** |
||
21 | * @var GeoCoordinates The geo coordinates of the place. |
||
22 | */ |
||
23 | protected $geo; |
||
24 | /** |
||
25 | * @var string The telephone number. |
||
26 | */ |
||
27 | protected $telephone; |
||
28 | |||
29 | /** |
||
30 | * Sets address. |
||
31 | * |
||
32 | * @param PostalAddress $address |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | 14 | public function setAddress(PostalAddress $address = null) |
|
42 | |||
43 | /** |
||
44 | * Gets address. |
||
45 | * |
||
46 | * @return PostalAddress |
||
47 | */ |
||
48 | 14 | public function getAddress() |
|
52 | |||
53 | /** |
||
54 | * Sets geo. |
||
55 | * |
||
56 | * @param GeoCoordinates $geo |
||
57 | * |
||
58 | * @return $this |
||
59 | */ |
||
60 | 18 | public function setGeo(GeoCoordinates $geo = null) |
|
66 | |||
67 | /** |
||
68 | * Gets geo. |
||
69 | * |
||
70 | * @return GeoCoordinates |
||
71 | */ |
||
72 | 2 | public function getGeo() |
|
76 | |||
77 | /** |
||
78 | * Sets telephone. |
||
79 | * |
||
80 | * @param string $telephone |
||
81 | * |
||
82 | * @return $this |
||
83 | */ |
||
84 | 2 | public function setTelephone($telephone) |
|
90 | |||
91 | /** |
||
92 | * Gets telephone. |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | 4 | public function getTelephone() |
|
100 | } |
||
101 |