@@ -20,19 +20,19 @@ |
||
| 20 | 20 | class ReviewCollection extends AbstractCollection |
| 21 | 21 | { |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * @var string |
|
| 25 | - */ |
|
| 26 | - protected $item_class = Review::class; |
|
| 23 | + /** |
|
| 24 | + * @var string |
|
| 25 | + */ |
|
| 26 | + protected $item_class = Review::class; |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * @param $item |
|
| 30 | - * |
|
| 31 | - * @return Review |
|
| 32 | - */ |
|
| 33 | - protected function parseItem($item): Review |
|
| 34 | - { |
|
| 28 | + /** |
|
| 29 | + * @param $item |
|
| 30 | + * |
|
| 31 | + * @return Review |
|
| 32 | + */ |
|
| 33 | + protected function parseItem($item): Review |
|
| 34 | + { |
|
| 35 | 35 | |
| 36 | - return ($item instanceof $this->item_class) ? $item : new $this->item_class($item); |
|
| 37 | - } |
|
| 36 | + return ($item instanceof $this->item_class) ? $item : new $this->item_class($item); |
|
| 37 | + } |
|
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |
@@ -38,135 +38,135 @@ |
||
| 38 | 38 | class PlacesResult extends GoogleMapsResult |
| 39 | 39 | { |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * @var null|string |
|
| 43 | - */ |
|
| 44 | - protected $formatted_address = null; |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @var string |
|
| 48 | - */ |
|
| 49 | - protected $name = ''; |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * @var Geometry |
|
| 53 | - */ |
|
| 54 | - protected $geometry = null; |
|
| 55 | - |
|
| 56 | - /** |
|
| 57 | - * @var string |
|
| 58 | - */ |
|
| 59 | - protected $icon = ''; |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * @var string |
|
| 63 | - */ |
|
| 64 | - protected $id = ''; |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * @var PhotoCollection |
|
| 68 | - */ |
|
| 69 | - protected $photos = null; |
|
| 70 | - |
|
| 71 | - /** |
|
| 72 | - * @var string |
|
| 73 | - */ |
|
| 74 | - protected $place_id = ''; |
|
| 75 | - |
|
| 76 | - /** |
|
| 77 | - * @var string |
|
| 78 | - */ |
|
| 79 | - protected $reference = ''; |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * @var string |
|
| 83 | - */ |
|
| 84 | - protected $vicinity = ''; |
|
| 85 | - |
|
| 86 | - /** |
|
| 87 | - * @var array |
|
| 88 | - */ |
|
| 89 | - protected $types = []; |
|
| 90 | - |
|
| 91 | - /** |
|
| 92 | - * @var array |
|
| 93 | - */ |
|
| 94 | - protected $opening_hours = []; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * @var int |
|
| 98 | - */ |
|
| 99 | - protected $price_level = 0; |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * @var bool |
|
| 103 | - */ |
|
| 104 | - protected $permanently_closed = false; |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @var ReviewCollection |
|
| 108 | - */ |
|
| 109 | - protected $reviews = null; |
|
| 110 | - |
|
| 111 | - /** |
|
| 112 | - * @var int |
|
| 113 | - */ |
|
| 114 | - protected $utc_offset = 0; |
|
| 115 | - |
|
| 116 | - /** |
|
| 117 | - * @var string |
|
| 118 | - */ |
|
| 119 | - protected $website = ''; |
|
| 120 | - |
|
| 121 | - /** |
|
| 122 | - * @var string |
|
| 123 | - */ |
|
| 124 | - protected $international_phone_number = ''; |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * @var string |
|
| 128 | - */ |
|
| 129 | - protected $formatted_phone_number = ''; |
|
| 130 | - |
|
| 131 | - /** |
|
| 132 | - * @var string |
|
| 133 | - */ |
|
| 134 | - protected $adr_address = ''; |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * @var array |
|
| 138 | - */ |
|
| 139 | - protected $typeCheck = [ |
|
| 140 | - GoogleMapsResultFields::FORMATTED_ADDRESS => 'string', |
|
| 141 | - GoogleMapsResultFields::NAME => 'string', |
|
| 142 | - GoogleMapsResultFields::GEOMETRY => Geometry::class, |
|
| 143 | - GoogleMapsResultFields::ICON => 'string', |
|
| 144 | - GoogleMapsResultFields::ID => 'string', |
|
| 145 | - GoogleMapsResultFields::PHOTOS => PhotoCollection::class, |
|
| 146 | - GoogleMapsResultFields::PLACE_ID => 'string', |
|
| 147 | - GoogleMapsResultFields::REFERENCE => 'string', |
|
| 148 | - GoogleMapsResultFields::VICINITY => 'string', |
|
| 149 | - GoogleMapsResultFields::TYPES => 'array', |
|
| 150 | - GoogleMapsResultFields::OPENING_HOURS => 'json', |
|
| 151 | - GoogleMapsResultFields::PRICE_LEVEL => 'int', |
|
| 152 | - GoogleMapsResultFields::RATING => 'float', |
|
| 153 | - GoogleMapsResultFields::PERMANENTLY_CLOSED => 'bool', |
|
| 154 | - GoogleMapsResultFields::PLUS_CODE => 'array', |
|
| 155 | - GoogleMapsResultFields::REVIEWS => ReviewCollection::class, |
|
| 156 | - GoogleMapsResultFields::UTC_OFFSET => 'int', |
|
| 157 | - GoogleMapsResultFields::WEBSITE => 'string', |
|
| 158 | - GoogleMapsResultFields::INTERNATIONAL_PHONE_NUMBER => 'string', |
|
| 159 | - GoogleMapsResultFields::FORMATTED_PHONE_NUMBER => 'string', |
|
| 160 | - GoogleMapsResultFields::ADR_ADDRESS => 'string', |
|
| 161 | - ]; |
|
| 162 | - |
|
| 163 | - /** |
|
| 164 | - * @return bool|null |
|
| 165 | - */ |
|
| 166 | - public function getPermanentlyClose(): bool |
|
| 167 | - { |
|
| 168 | - |
|
| 169 | - return $this->permanently_closed ?? false; |
|
| 170 | - } |
|
| 41 | + /** |
|
| 42 | + * @var null|string |
|
| 43 | + */ |
|
| 44 | + protected $formatted_address = null; |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @var string |
|
| 48 | + */ |
|
| 49 | + protected $name = ''; |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @var Geometry |
|
| 53 | + */ |
|
| 54 | + protected $geometry = null; |
|
| 55 | + |
|
| 56 | + /** |
|
| 57 | + * @var string |
|
| 58 | + */ |
|
| 59 | + protected $icon = ''; |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * @var string |
|
| 63 | + */ |
|
| 64 | + protected $id = ''; |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * @var PhotoCollection |
|
| 68 | + */ |
|
| 69 | + protected $photos = null; |
|
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * @var string |
|
| 73 | + */ |
|
| 74 | + protected $place_id = ''; |
|
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @var string |
|
| 78 | + */ |
|
| 79 | + protected $reference = ''; |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * @var string |
|
| 83 | + */ |
|
| 84 | + protected $vicinity = ''; |
|
| 85 | + |
|
| 86 | + /** |
|
| 87 | + * @var array |
|
| 88 | + */ |
|
| 89 | + protected $types = []; |
|
| 90 | + |
|
| 91 | + /** |
|
| 92 | + * @var array |
|
| 93 | + */ |
|
| 94 | + protected $opening_hours = []; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @var int |
|
| 98 | + */ |
|
| 99 | + protected $price_level = 0; |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * @var bool |
|
| 103 | + */ |
|
| 104 | + protected $permanently_closed = false; |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @var ReviewCollection |
|
| 108 | + */ |
|
| 109 | + protected $reviews = null; |
|
| 110 | + |
|
| 111 | + /** |
|
| 112 | + * @var int |
|
| 113 | + */ |
|
| 114 | + protected $utc_offset = 0; |
|
| 115 | + |
|
| 116 | + /** |
|
| 117 | + * @var string |
|
| 118 | + */ |
|
| 119 | + protected $website = ''; |
|
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @var string |
|
| 123 | + */ |
|
| 124 | + protected $international_phone_number = ''; |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * @var string |
|
| 128 | + */ |
|
| 129 | + protected $formatted_phone_number = ''; |
|
| 130 | + |
|
| 131 | + /** |
|
| 132 | + * @var string |
|
| 133 | + */ |
|
| 134 | + protected $adr_address = ''; |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * @var array |
|
| 138 | + */ |
|
| 139 | + protected $typeCheck = [ |
|
| 140 | + GoogleMapsResultFields::FORMATTED_ADDRESS => 'string', |
|
| 141 | + GoogleMapsResultFields::NAME => 'string', |
|
| 142 | + GoogleMapsResultFields::GEOMETRY => Geometry::class, |
|
| 143 | + GoogleMapsResultFields::ICON => 'string', |
|
| 144 | + GoogleMapsResultFields::ID => 'string', |
|
| 145 | + GoogleMapsResultFields::PHOTOS => PhotoCollection::class, |
|
| 146 | + GoogleMapsResultFields::PLACE_ID => 'string', |
|
| 147 | + GoogleMapsResultFields::REFERENCE => 'string', |
|
| 148 | + GoogleMapsResultFields::VICINITY => 'string', |
|
| 149 | + GoogleMapsResultFields::TYPES => 'array', |
|
| 150 | + GoogleMapsResultFields::OPENING_HOURS => 'json', |
|
| 151 | + GoogleMapsResultFields::PRICE_LEVEL => 'int', |
|
| 152 | + GoogleMapsResultFields::RATING => 'float', |
|
| 153 | + GoogleMapsResultFields::PERMANENTLY_CLOSED => 'bool', |
|
| 154 | + GoogleMapsResultFields::PLUS_CODE => 'array', |
|
| 155 | + GoogleMapsResultFields::REVIEWS => ReviewCollection::class, |
|
| 156 | + GoogleMapsResultFields::UTC_OFFSET => 'int', |
|
| 157 | + GoogleMapsResultFields::WEBSITE => 'string', |
|
| 158 | + GoogleMapsResultFields::INTERNATIONAL_PHONE_NUMBER => 'string', |
|
| 159 | + GoogleMapsResultFields::FORMATTED_PHONE_NUMBER => 'string', |
|
| 160 | + GoogleMapsResultFields::ADR_ADDRESS => 'string', |
|
| 161 | + ]; |
|
| 162 | + |
|
| 163 | + /** |
|
| 164 | + * @return bool|null |
|
| 165 | + */ |
|
| 166 | + public function getPermanentlyClose(): bool |
|
| 167 | + { |
|
| 168 | + |
|
| 169 | + return $this->permanently_closed ?? false; |
|
| 170 | + } |
|
| 171 | 171 | |
| 172 | 172 | } |
| 173 | 173 | \ No newline at end of file |
@@ -17,43 +17,43 @@ |
||
| 17 | 17 | class GoogleMapsResponseFields |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * @var string results |
|
| 22 | - */ |
|
| 23 | - const RESULTS = 'results'; |
|
| 24 | - |
|
| 25 | - /** |
|
| 26 | - * @var string result |
|
| 27 | - * @since v0.6.0 |
|
| 28 | - */ |
|
| 29 | - const RESULT = 'result'; |
|
| 30 | - |
|
| 31 | - /** |
|
| 32 | - * @var string status |
|
| 33 | - */ |
|
| 34 | - const STATUS = 'status'; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * @var string error_message |
|
| 38 | - */ |
|
| 39 | - const ERROR_MESSAGE = 'error_message'; |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * @var string candidates |
|
| 43 | - * @since 0.5.0 |
|
| 44 | - */ |
|
| 45 | - const CANDIDATES = 'candidates'; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * @var string html_attributions |
|
| 49 | - * @since 0.5.0 |
|
| 50 | - */ |
|
| 51 | - const HTML_ATTRIBUTIONS = 'html_attributions'; |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * @var string next_page_token |
|
| 55 | - * @since 0.5.0 |
|
| 56 | - */ |
|
| 57 | - const NEXT_PAGE_TOKEN = 'next_page_token'; |
|
| 20 | + /** |
|
| 21 | + * @var string results |
|
| 22 | + */ |
|
| 23 | + const RESULTS = 'results'; |
|
| 24 | + |
|
| 25 | + /** |
|
| 26 | + * @var string result |
|
| 27 | + * @since v0.6.0 |
|
| 28 | + */ |
|
| 29 | + const RESULT = 'result'; |
|
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @var string status |
|
| 33 | + */ |
|
| 34 | + const STATUS = 'status'; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @var string error_message |
|
| 38 | + */ |
|
| 39 | + const ERROR_MESSAGE = 'error_message'; |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * @var string candidates |
|
| 43 | + * @since 0.5.0 |
|
| 44 | + */ |
|
| 45 | + const CANDIDATES = 'candidates'; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @var string html_attributions |
|
| 49 | + * @since 0.5.0 |
|
| 50 | + */ |
|
| 51 | + const HTML_ATTRIBUTIONS = 'html_attributions'; |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @var string next_page_token |
|
| 55 | + * @since 0.5.0 |
|
| 56 | + */ |
|
| 57 | + const NEXT_PAGE_TOKEN = 'next_page_token'; |
|
| 58 | 58 | |
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |
@@ -18,43 +18,43 @@ |
||
| 18 | 18 | class ReviewFields |
| 19 | 19 | { |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - const AUTHOR_NAME = "author_name"; |
|
| 25 | - |
|
| 26 | - /** |
|
| 27 | - * @var string |
|
| 28 | - */ |
|
| 29 | - const AUTHOR_URL = "author_url"; |
|
| 30 | - |
|
| 31 | - /** |
|
| 32 | - * @var string |
|
| 33 | - */ |
|
| 34 | - const LANGUAGE = "language"; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * @var string |
|
| 38 | - */ |
|
| 39 | - const PROFILE_PHOTO_URL = "profile_photo_url"; |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * @var string |
|
| 43 | - */ |
|
| 44 | - const RATING = "rating"; |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @var string |
|
| 48 | - */ |
|
| 49 | - const RELATIVE_TIME_DESCRIPTION = "relative_time_description"; |
|
| 50 | - |
|
| 51 | - /** |
|
| 52 | - * @var string |
|
| 53 | - */ |
|
| 54 | - const TEXT = "text"; |
|
| 55 | - |
|
| 56 | - /** |
|
| 57 | - * @var string |
|
| 58 | - */ |
|
| 59 | - const TIME = "time"; |
|
| 21 | + /** |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + const AUTHOR_NAME = "author_name"; |
|
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @var string |
|
| 28 | + */ |
|
| 29 | + const AUTHOR_URL = "author_url"; |
|
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @var string |
|
| 33 | + */ |
|
| 34 | + const LANGUAGE = "language"; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @var string |
|
| 38 | + */ |
|
| 39 | + const PROFILE_PHOTO_URL = "profile_photo_url"; |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * @var string |
|
| 43 | + */ |
|
| 44 | + const RATING = "rating"; |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @var string |
|
| 48 | + */ |
|
| 49 | + const RELATIVE_TIME_DESCRIPTION = "relative_time_description"; |
|
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @var string |
|
| 53 | + */ |
|
| 54 | + const TEXT = "text"; |
|
| 55 | + |
|
| 56 | + /** |
|
| 57 | + * @var string |
|
| 58 | + */ |
|
| 59 | + const TIME = "time"; |
|
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -17,23 +17,23 @@ |
||
| 17 | 17 | class PlaceServicesEndpoints |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * @var string |
|
| 22 | - */ |
|
| 23 | - const FINDPLACEFROMTEXT = "findplacefromtext"; |
|
| 20 | + /** |
|
| 21 | + * @var string |
|
| 22 | + */ |
|
| 23 | + const FINDPLACEFROMTEXT = "findplacefromtext"; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * @var string |
|
| 27 | - */ |
|
| 28 | - const NEARBYSEARCH = "nearbysearch"; |
|
| 25 | + /** |
|
| 26 | + * @var string |
|
| 27 | + */ |
|
| 28 | + const NEARBYSEARCH = "nearbysearch"; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * @var string |
|
| 32 | - */ |
|
| 33 | - const TEXTSEARCH = "textsearch"; |
|
| 30 | + /** |
|
| 31 | + * @var string |
|
| 32 | + */ |
|
| 33 | + const TEXTSEARCH = "textsearch"; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * @var string |
|
| 37 | - */ |
|
| 38 | - const DETAILS = "details"; |
|
| 35 | + /** |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | + const DETAILS = "details"; |
|
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -17,186 +17,186 @@ |
||
| 17 | 17 | class GoogleMapsResultFields |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * @var string address_components |
|
| 22 | - */ |
|
| 23 | - const ADDRESS_COMPONENTS = 'address_components'; |
|
| 24 | - |
|
| 25 | - /** |
|
| 26 | - * @var string formatted_address |
|
| 27 | - */ |
|
| 28 | - const FORMATTED_ADDRESS = 'formatted_address'; |
|
| 29 | - |
|
| 30 | - /** |
|
| 31 | - * @var string geometry |
|
| 32 | - */ |
|
| 33 | - const GEOMETRY = 'geometry'; |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * @var string viewport |
|
| 37 | - */ |
|
| 38 | - const VIEWPORT = 'viewport'; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @var string place_id |
|
| 42 | - */ |
|
| 43 | - const PLACE_ID = 'place_id'; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var string location_type |
|
| 47 | - */ |
|
| 48 | - const LOCATION_TYPE = 'location_type'; |
|
| 49 | - |
|
| 50 | - /** |
|
| 51 | - * @var string types |
|
| 52 | - */ |
|
| 53 | - const TYPES = 'types'; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @var string location |
|
| 57 | - */ |
|
| 58 | - const LOCATION = 'location'; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * @var string elevation |
|
| 62 | - */ |
|
| 63 | - const ELEVATION = 'elevation'; |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @var string resolution |
|
| 67 | - */ |
|
| 68 | - const RESOLUTION = 'resolution'; |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @var string icon |
|
| 72 | - * @since 0.5.0 |
|
| 73 | - */ |
|
| 74 | - const ICON = 'icon'; |
|
| 75 | - |
|
| 76 | - /** |
|
| 77 | - * @var string id |
|
| 78 | - * @since 0.5.0 |
|
| 79 | - */ |
|
| 80 | - const ID = 'id'; |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * @var string name |
|
| 84 | - * @since 0.5.0 |
|
| 85 | - */ |
|
| 86 | - const NAME = 'name'; |
|
| 87 | - |
|
| 88 | - /** |
|
| 89 | - * @var string photos |
|
| 90 | - * @since 0.5.0 |
|
| 91 | - */ |
|
| 92 | - const PHOTOS = 'photos'; |
|
| 93 | - |
|
| 94 | - /** |
|
| 95 | - * @var string reference |
|
| 96 | - * @since 0.5.0 |
|
| 97 | - */ |
|
| 98 | - const REFERENCE = 'reference'; |
|
| 99 | - |
|
| 100 | - /** |
|
| 101 | - * @var string vicinity |
|
| 102 | - * @since 0.5.0 |
|
| 103 | - */ |
|
| 104 | - const VICINITY = 'vicinity'; |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @var string opening_hours |
|
| 108 | - * @since 0.5.0 |
|
| 109 | - */ |
|
| 110 | - const OPENING_HOURS = 'opening_hours'; |
|
| 111 | - |
|
| 112 | - /** |
|
| 113 | - * @var string price_level |
|
| 114 | - * @since 0.5.0 |
|
| 115 | - */ |
|
| 116 | - const PRICE_LEVEL = 'price_level'; |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * @var string rating |
|
| 120 | - * @since 0.5.0 |
|
| 121 | - */ |
|
| 122 | - const RATING = 'rating'; |
|
| 123 | - |
|
| 124 | - /** |
|
| 125 | - * @var string permanently_closed |
|
| 126 | - * @since 0.5.0 |
|
| 127 | - */ |
|
| 128 | - const PERMANENTLY_CLOSED = 'permanently_closed'; |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * @var string plus_code |
|
| 132 | - * @since 0.5.0 |
|
| 133 | - */ |
|
| 134 | - const PLUS_CODE = 'plus_code'; |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * @var string next_page_token |
|
| 138 | - * @since 0.5.0 |
|
| 139 | - */ |
|
| 140 | - const NEXT_PAGE_TOKEN = 'next_page_token'; |
|
| 141 | - |
|
| 142 | - /** |
|
| 143 | - * @var string reviews |
|
| 144 | - * @since 0.6.0 |
|
| 145 | - */ |
|
| 146 | - const REVIEWS = 'reviews'; |
|
| 147 | - |
|
| 148 | - /** |
|
| 149 | - * @var string utc_offset |
|
| 150 | - * @since 0.6.0 |
|
| 151 | - */ |
|
| 152 | - const UTC_OFFSET = 'utc_offset'; |
|
| 153 | - |
|
| 154 | - /** |
|
| 155 | - * @var string website |
|
| 156 | - * @since 0.6.0 |
|
| 157 | - */ |
|
| 158 | - const WEBSITE = 'website'; |
|
| 159 | - |
|
| 160 | - /** |
|
| 161 | - * @var string international_phone_number |
|
| 162 | - * @since 0.6.0 |
|
| 163 | - */ |
|
| 164 | - const INTERNATIONAL_PHONE_NUMBER = 'international_phone_number'; |
|
| 165 | - |
|
| 166 | - /** |
|
| 167 | - * @var string formatted_phone_number |
|
| 168 | - * @since 0.6.0 |
|
| 169 | - */ |
|
| 170 | - const FORMATTED_PHONE_NUMBER = 'formatted_phone_number'; |
|
| 171 | - |
|
| 172 | - /** |
|
| 173 | - * @var string adr_address |
|
| 174 | - * @since 0.6.0 |
|
| 175 | - */ |
|
| 176 | - const ADR_ADDRESS = 'adr_address'; |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * @var string dstOffset |
|
| 180 | - * @since 0.7.0 |
|
| 181 | - */ |
|
| 182 | - const DST_OFFSET = 'dstOffset'; |
|
| 183 | - |
|
| 184 | - /** |
|
| 185 | - * @var string rawOffset |
|
| 186 | - * @since 0.7.0 |
|
| 187 | - */ |
|
| 188 | - const RAW_OFFSET = 'rawOffset'; |
|
| 189 | - |
|
| 190 | - /** |
|
| 191 | - * @var string timeZoneId |
|
| 192 | - * @since 0.7.0 |
|
| 193 | - */ |
|
| 194 | - const TIMEZONE_ID = 'timeZoneId'; |
|
| 195 | - |
|
| 196 | - /** |
|
| 197 | - * @var string timeZoneName |
|
| 198 | - * @since 0.7.0 |
|
| 199 | - */ |
|
| 200 | - const TIMEZONE_NAME = 'timeZoneName'; |
|
| 20 | + /** |
|
| 21 | + * @var string address_components |
|
| 22 | + */ |
|
| 23 | + const ADDRESS_COMPONENTS = 'address_components'; |
|
| 24 | + |
|
| 25 | + /** |
|
| 26 | + * @var string formatted_address |
|
| 27 | + */ |
|
| 28 | + const FORMATTED_ADDRESS = 'formatted_address'; |
|
| 29 | + |
|
| 30 | + /** |
|
| 31 | + * @var string geometry |
|
| 32 | + */ |
|
| 33 | + const GEOMETRY = 'geometry'; |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @var string viewport |
|
| 37 | + */ |
|
| 38 | + const VIEWPORT = 'viewport'; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @var string place_id |
|
| 42 | + */ |
|
| 43 | + const PLACE_ID = 'place_id'; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var string location_type |
|
| 47 | + */ |
|
| 48 | + const LOCATION_TYPE = 'location_type'; |
|
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @var string types |
|
| 52 | + */ |
|
| 53 | + const TYPES = 'types'; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @var string location |
|
| 57 | + */ |
|
| 58 | + const LOCATION = 'location'; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @var string elevation |
|
| 62 | + */ |
|
| 63 | + const ELEVATION = 'elevation'; |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @var string resolution |
|
| 67 | + */ |
|
| 68 | + const RESOLUTION = 'resolution'; |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @var string icon |
|
| 72 | + * @since 0.5.0 |
|
| 73 | + */ |
|
| 74 | + const ICON = 'icon'; |
|
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @var string id |
|
| 78 | + * @since 0.5.0 |
|
| 79 | + */ |
|
| 80 | + const ID = 'id'; |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @var string name |
|
| 84 | + * @since 0.5.0 |
|
| 85 | + */ |
|
| 86 | + const NAME = 'name'; |
|
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @var string photos |
|
| 90 | + * @since 0.5.0 |
|
| 91 | + */ |
|
| 92 | + const PHOTOS = 'photos'; |
|
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @var string reference |
|
| 96 | + * @since 0.5.0 |
|
| 97 | + */ |
|
| 98 | + const REFERENCE = 'reference'; |
|
| 99 | + |
|
| 100 | + /** |
|
| 101 | + * @var string vicinity |
|
| 102 | + * @since 0.5.0 |
|
| 103 | + */ |
|
| 104 | + const VICINITY = 'vicinity'; |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @var string opening_hours |
|
| 108 | + * @since 0.5.0 |
|
| 109 | + */ |
|
| 110 | + const OPENING_HOURS = 'opening_hours'; |
|
| 111 | + |
|
| 112 | + /** |
|
| 113 | + * @var string price_level |
|
| 114 | + * @since 0.5.0 |
|
| 115 | + */ |
|
| 116 | + const PRICE_LEVEL = 'price_level'; |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @var string rating |
|
| 120 | + * @since 0.5.0 |
|
| 121 | + */ |
|
| 122 | + const RATING = 'rating'; |
|
| 123 | + |
|
| 124 | + /** |
|
| 125 | + * @var string permanently_closed |
|
| 126 | + * @since 0.5.0 |
|
| 127 | + */ |
|
| 128 | + const PERMANENTLY_CLOSED = 'permanently_closed'; |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * @var string plus_code |
|
| 132 | + * @since 0.5.0 |
|
| 133 | + */ |
|
| 134 | + const PLUS_CODE = 'plus_code'; |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * @var string next_page_token |
|
| 138 | + * @since 0.5.0 |
|
| 139 | + */ |
|
| 140 | + const NEXT_PAGE_TOKEN = 'next_page_token'; |
|
| 141 | + |
|
| 142 | + /** |
|
| 143 | + * @var string reviews |
|
| 144 | + * @since 0.6.0 |
|
| 145 | + */ |
|
| 146 | + const REVIEWS = 'reviews'; |
|
| 147 | + |
|
| 148 | + /** |
|
| 149 | + * @var string utc_offset |
|
| 150 | + * @since 0.6.0 |
|
| 151 | + */ |
|
| 152 | + const UTC_OFFSET = 'utc_offset'; |
|
| 153 | + |
|
| 154 | + /** |
|
| 155 | + * @var string website |
|
| 156 | + * @since 0.6.0 |
|
| 157 | + */ |
|
| 158 | + const WEBSITE = 'website'; |
|
| 159 | + |
|
| 160 | + /** |
|
| 161 | + * @var string international_phone_number |
|
| 162 | + * @since 0.6.0 |
|
| 163 | + */ |
|
| 164 | + const INTERNATIONAL_PHONE_NUMBER = 'international_phone_number'; |
|
| 165 | + |
|
| 166 | + /** |
|
| 167 | + * @var string formatted_phone_number |
|
| 168 | + * @since 0.6.0 |
|
| 169 | + */ |
|
| 170 | + const FORMATTED_PHONE_NUMBER = 'formatted_phone_number'; |
|
| 171 | + |
|
| 172 | + /** |
|
| 173 | + * @var string adr_address |
|
| 174 | + * @since 0.6.0 |
|
| 175 | + */ |
|
| 176 | + const ADR_ADDRESS = 'adr_address'; |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * @var string dstOffset |
|
| 180 | + * @since 0.7.0 |
|
| 181 | + */ |
|
| 182 | + const DST_OFFSET = 'dstOffset'; |
|
| 183 | + |
|
| 184 | + /** |
|
| 185 | + * @var string rawOffset |
|
| 186 | + * @since 0.7.0 |
|
| 187 | + */ |
|
| 188 | + const RAW_OFFSET = 'rawOffset'; |
|
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * @var string timeZoneId |
|
| 192 | + * @since 0.7.0 |
|
| 193 | + */ |
|
| 194 | + const TIMEZONE_ID = 'timeZoneId'; |
|
| 195 | + |
|
| 196 | + /** |
|
| 197 | + * @var string timeZoneName |
|
| 198 | + * @since 0.7.0 |
|
| 199 | + */ |
|
| 200 | + const TIMEZONE_NAME = 'timeZoneName'; |
|
| 201 | 201 | |
| 202 | 202 | } |
| 203 | 203 | \ No newline at end of file |
@@ -30,45 +30,45 @@ |
||
| 30 | 30 | class TimeZoneResult extends GoogleMapsResult |
| 31 | 31 | { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * @var int |
|
| 35 | - */ |
|
| 36 | - protected $dstOffset = 0; |
|
| 33 | + /** |
|
| 34 | + * @var int |
|
| 35 | + */ |
|
| 36 | + protected $dstOffset = 0; |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @var int |
|
| 40 | - */ |
|
| 41 | - protected $rawOffset = 0; |
|
| 38 | + /** |
|
| 39 | + * @var int |
|
| 40 | + */ |
|
| 41 | + protected $rawOffset = 0; |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * @var string |
|
| 45 | - */ |
|
| 46 | - protected $timeZoneId = ''; |
|
| 43 | + /** |
|
| 44 | + * @var string |
|
| 45 | + */ |
|
| 46 | + protected $timeZoneId = ''; |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * @var string |
|
| 50 | - */ |
|
| 51 | - protected $timeZoneName = ''; |
|
| 48 | + /** |
|
| 49 | + * @var string |
|
| 50 | + */ |
|
| 51 | + protected $timeZoneName = ''; |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * @var array |
|
| 55 | - */ |
|
| 56 | - protected $typeCheck = [ |
|
| 57 | - GoogleMapsResultFields::DST_OFFSET => 'int', |
|
| 58 | - GoogleMapsResultFields::RAW_OFFSET => 'int', |
|
| 59 | - GoogleMapsResultFields::TIMEZONE_ID => 'string', |
|
| 60 | - GoogleMapsResultFields::TIMEZONE_NAME => 'string', |
|
| 61 | - ]; |
|
| 53 | + /** |
|
| 54 | + * @var array |
|
| 55 | + */ |
|
| 56 | + protected $typeCheck = [ |
|
| 57 | + GoogleMapsResultFields::DST_OFFSET => 'int', |
|
| 58 | + GoogleMapsResultFields::RAW_OFFSET => 'int', |
|
| 59 | + GoogleMapsResultFields::TIMEZONE_ID => 'string', |
|
| 60 | + GoogleMapsResultFields::TIMEZONE_NAME => 'string', |
|
| 61 | + ]; |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * @param string $initial_field_name |
|
| 65 | - * |
|
| 66 | - * @return string |
|
| 67 | - */ |
|
| 68 | - protected function getFieldName(string $initial_field_name): string |
|
| 69 | - { |
|
| 63 | + /** |
|
| 64 | + * @param string $initial_field_name |
|
| 65 | + * |
|
| 66 | + * @return string |
|
| 67 | + */ |
|
| 68 | + protected function getFieldName(string $initial_field_name): string |
|
| 69 | + { |
|
| 70 | 70 | |
| 71 | - return lcfirst($initial_field_name); |
|
| 72 | - } |
|
| 71 | + return lcfirst($initial_field_name); |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | 74 | } |
| 75 | 75 | \ No newline at end of file |
@@ -27,35 +27,35 @@ |
||
| 27 | 27 | class TimeZone extends Api |
| 28 | 28 | { |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * @var string |
|
| 32 | - */ |
|
| 33 | - const SERVICE_ENDPOINT = 'timezone'; |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * @var string |
|
| 37 | - */ |
|
| 38 | - protected $result_type = TimeZoneResult::class; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @param Location $location |
|
| 42 | - * @param int $timestamp |
|
| 43 | - * @param string|null $language |
|
| 44 | - * |
|
| 45 | - * @return GoogleMapsResult |
|
| 46 | - */ |
|
| 47 | - public function get(Location $location, int $timestamp, string $language = null): GoogleMapsResult |
|
| 48 | - { |
|
| 49 | - |
|
| 50 | - $params = [ |
|
| 51 | - GoogleMapsRequestFields::LOCATION => $location, |
|
| 52 | - GoogleMapsRequestFields::TIMESTAMP => $timestamp, |
|
| 53 | - ]; |
|
| 54 | - |
|
| 55 | - if ($language) { |
|
| 56 | - $params[GoogleMapsRequestFields::LANGUAGE] = $language; |
|
| 57 | - } |
|
| 58 | - |
|
| 59 | - return $this->callApi($params); |
|
| 60 | - } |
|
| 30 | + /** |
|
| 31 | + * @var string |
|
| 32 | + */ |
|
| 33 | + const SERVICE_ENDPOINT = 'timezone'; |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | + protected $result_type = TimeZoneResult::class; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @param Location $location |
|
| 42 | + * @param int $timestamp |
|
| 43 | + * @param string|null $language |
|
| 44 | + * |
|
| 45 | + * @return GoogleMapsResult |
|
| 46 | + */ |
|
| 47 | + public function get(Location $location, int $timestamp, string $language = null): GoogleMapsResult |
|
| 48 | + { |
|
| 49 | + |
|
| 50 | + $params = [ |
|
| 51 | + GoogleMapsRequestFields::LOCATION => $location, |
|
| 52 | + GoogleMapsRequestFields::TIMESTAMP => $timestamp, |
|
| 53 | + ]; |
|
| 54 | + |
|
| 55 | + if ($language) { |
|
| 56 | + $params[GoogleMapsRequestFields::LANGUAGE] = $language; |
|
| 57 | + } |
|
| 58 | + |
|
| 59 | + return $this->callApi($params); |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -26,112 +26,112 @@ |
||
| 26 | 26 | class Geocoding extends Api |
| 27 | 27 | { |
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * The language in which to return results |
|
| 31 | - * https://developers.google.com/maps/faq#languagesupport |
|
| 32 | - * |
|
| 33 | - * @var null|string |
|
| 34 | - */ |
|
| 35 | - private $language = null; |
|
| 29 | + /** |
|
| 30 | + * The language in which to return results |
|
| 31 | + * https://developers.google.com/maps/faq#languagesupport |
|
| 32 | + * |
|
| 33 | + * @var null|string |
|
| 34 | + */ |
|
| 35 | + private $language = null; |
|
| 36 | 36 | |
| 37 | - /** |
|
| 38 | - * @var string |
|
| 39 | - */ |
|
| 40 | - const SERVICE_ENDPOINT = 'geocode'; |
|
| 37 | + /** |
|
| 38 | + * @var string |
|
| 39 | + */ |
|
| 40 | + const SERVICE_ENDPOINT = 'geocode'; |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * @var string |
|
| 44 | - */ |
|
| 45 | - protected $result_collection_type = GeocodingResultsCollection::class; |
|
| 42 | + /** |
|
| 43 | + * @var string |
|
| 44 | + */ |
|
| 45 | + protected $result_collection_type = GeocodingResultsCollection::class; |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * Set the language in which to return results |
|
| 49 | - * |
|
| 50 | - * @param null|string $language |
|
| 51 | - * @return self |
|
| 52 | - */ |
|
| 53 | - public function setLanguage(?string $language = null): self |
|
| 54 | - { |
|
| 55 | - $this->language = $language; |
|
| 56 | - return $this; |
|
| 57 | - } |
|
| 47 | + /** |
|
| 48 | + * Set the language in which to return results |
|
| 49 | + * |
|
| 50 | + * @param null|string $language |
|
| 51 | + * @return self |
|
| 52 | + */ |
|
| 53 | + public function setLanguage(?string $language = null): self |
|
| 54 | + { |
|
| 55 | + $this->language = $language; |
|
| 56 | + return $this; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Add language to $params list if necessary |
|
| 61 | - * |
|
| 62 | - * @param array $params |
|
| 63 | - * @return array |
|
| 64 | - * @since 0.8.0 |
|
| 65 | - */ |
|
| 66 | - public function prepareParams(array $params): array |
|
| 67 | - { |
|
| 68 | - if ($this->language) { |
|
| 69 | - $params[GoogleMapsRequestFields::LANGUAGE] = $this->language; |
|
| 70 | - } |
|
| 71 | - return $params; |
|
| 72 | - } |
|
| 59 | + /** |
|
| 60 | + * Add language to $params list if necessary |
|
| 61 | + * |
|
| 62 | + * @param array $params |
|
| 63 | + * @return array |
|
| 64 | + * @since 0.8.0 |
|
| 65 | + */ |
|
| 66 | + public function prepareParams(array $params): array |
|
| 67 | + { |
|
| 68 | + if ($this->language) { |
|
| 69 | + $params[GoogleMapsRequestFields::LANGUAGE] = $this->language; |
|
| 70 | + } |
|
| 71 | + return $params; |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | - /** |
|
| 75 | - * Geocoding (Address Lookup) |
|
| 76 | - * |
|
| 77 | - * @param string $literal_address |
|
| 78 | - * @param string $region |
|
| 79 | - * |
|
| 80 | - * @return GoogleMapsResultsCollection |
|
| 81 | - */ |
|
| 82 | - public function getByAddress(string $literal_address, ?string $region = null): GoogleMapsResultsCollection |
|
| 83 | - { |
|
| 84 | - $params = [ |
|
| 85 | - GoogleMapsRequestFields::ADDRESS => $literal_address |
|
| 86 | - ]; |
|
| 87 | - if ($region) { |
|
| 88 | - $params[GoogleMapsRequestFields::REGION] = $region; |
|
| 89 | - } |
|
| 90 | - $params = $this->prepareParams($params); |
|
| 91 | - return $this->callApi($params); |
|
| 92 | - } |
|
| 74 | + /** |
|
| 75 | + * Geocoding (Address Lookup) |
|
| 76 | + * |
|
| 77 | + * @param string $literal_address |
|
| 78 | + * @param string $region |
|
| 79 | + * |
|
| 80 | + * @return GoogleMapsResultsCollection |
|
| 81 | + */ |
|
| 82 | + public function getByAddress(string $literal_address, ?string $region = null): GoogleMapsResultsCollection |
|
| 83 | + { |
|
| 84 | + $params = [ |
|
| 85 | + GoogleMapsRequestFields::ADDRESS => $literal_address |
|
| 86 | + ]; |
|
| 87 | + if ($region) { |
|
| 88 | + $params[GoogleMapsRequestFields::REGION] = $region; |
|
| 89 | + } |
|
| 90 | + $params = $this->prepareParams($params); |
|
| 91 | + return $this->callApi($params); |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - /** |
|
| 95 | - * ALIAS: getByLatLng |
|
| 96 | - * Geocoding (Latitude/Longitude Lookup) |
|
| 97 | - * |
|
| 98 | - * @param LatLng $latlng |
|
| 99 | - * |
|
| 100 | - * @return GoogleMapsResultsCollection |
|
| 101 | - * @deprecated 0.8.0 |
|
| 102 | - */ |
|
| 103 | - public function getReverse(LatLng $latlng): GoogleMapsResultsCollection |
|
| 104 | - { |
|
| 105 | - return $this->getByLatLng($latlng); |
|
| 106 | - } |
|
| 94 | + /** |
|
| 95 | + * ALIAS: getByLatLng |
|
| 96 | + * Geocoding (Latitude/Longitude Lookup) |
|
| 97 | + * |
|
| 98 | + * @param LatLng $latlng |
|
| 99 | + * |
|
| 100 | + * @return GoogleMapsResultsCollection |
|
| 101 | + * @deprecated 0.8.0 |
|
| 102 | + */ |
|
| 103 | + public function getReverse(LatLng $latlng): GoogleMapsResultsCollection |
|
| 104 | + { |
|
| 105 | + return $this->getByLatLng($latlng); |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | - /** |
|
| 109 | - * Geocoding (Latitude/Longitude Lookup) |
|
| 110 | - * |
|
| 111 | - * @param LatLng $latlng |
|
| 112 | - * |
|
| 113 | - * @return GoogleMapsResultsCollection |
|
| 114 | - * @since 0.8.0 |
|
| 115 | - */ |
|
| 116 | - public function getByLatLng(LatLng $latlng): GoogleMapsResultsCollection |
|
| 117 | - { |
|
| 118 | - $params = $this->prepareParams([ |
|
| 119 | - GoogleMapsRequestFields::LATLNG => $latlng |
|
| 120 | - ]); |
|
| 121 | - return $this->callApi($params); |
|
| 122 | - } |
|
| 108 | + /** |
|
| 109 | + * Geocoding (Latitude/Longitude Lookup) |
|
| 110 | + * |
|
| 111 | + * @param LatLng $latlng |
|
| 112 | + * |
|
| 113 | + * @return GoogleMapsResultsCollection |
|
| 114 | + * @since 0.8.0 |
|
| 115 | + */ |
|
| 116 | + public function getByLatLng(LatLng $latlng): GoogleMapsResultsCollection |
|
| 117 | + { |
|
| 118 | + $params = $this->prepareParams([ |
|
| 119 | + GoogleMapsRequestFields::LATLNG => $latlng |
|
| 120 | + ]); |
|
| 121 | + return $this->callApi($params); |
|
| 122 | + } |
|
| 123 | 123 | |
| 124 | - /** |
|
| 125 | - * Retrieving an Address for a Place ID |
|
| 126 | - * |
|
| 127 | - * @param string $place_id |
|
| 128 | - * |
|
| 129 | - * @return GoogleMapsResultsCollection |
|
| 130 | - */ |
|
| 131 | - public function getByPlaceId(string $place_id): GoogleMapsResultsCollection |
|
| 132 | - { |
|
| 133 | - return $this->callApi([ |
|
| 134 | - GoogleMapsRequestFields::PLACE_ID => $place_id |
|
| 135 | - ]); |
|
| 136 | - } |
|
| 124 | + /** |
|
| 125 | + * Retrieving an Address for a Place ID |
|
| 126 | + * |
|
| 127 | + * @param string $place_id |
|
| 128 | + * |
|
| 129 | + * @return GoogleMapsResultsCollection |
|
| 130 | + */ |
|
| 131 | + public function getByPlaceId(string $place_id): GoogleMapsResultsCollection |
|
| 132 | + { |
|
| 133 | + return $this->callApi([ |
|
| 134 | + GoogleMapsRequestFields::PLACE_ID => $place_id |
|
| 135 | + ]); |
|
| 136 | + } |
|
| 137 | 137 | } |