@@ -39,141 +39,141 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | class PlacesResult extends GoogleMapsResult |
| 41 | 41 | { |
| 42 | - /** |
|
| 43 | - * @var Address[] |
|
| 44 | - */ |
|
| 45 | - protected $address_components = null; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * @var null|string |
|
| 49 | - */ |
|
| 50 | - protected $formatted_address = null; |
|
| 51 | - |
|
| 52 | - /** |
|
| 53 | - * @var string |
|
| 54 | - */ |
|
| 55 | - protected $name = ''; |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * @var Geometry |
|
| 59 | - */ |
|
| 60 | - protected $geometry = null; |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @var string |
|
| 64 | - */ |
|
| 65 | - protected $icon = ''; |
|
| 66 | - |
|
| 67 | - /** |
|
| 68 | - * @var string |
|
| 69 | - */ |
|
| 70 | - protected $id = ''; |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * @var PhotoCollection |
|
| 74 | - */ |
|
| 75 | - protected $photos = null; |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * @var string |
|
| 79 | - */ |
|
| 80 | - protected $place_id = ''; |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * @var string |
|
| 84 | - */ |
|
| 85 | - protected $reference = ''; |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * @var string |
|
| 89 | - */ |
|
| 90 | - protected $vicinity = ''; |
|
| 91 | - |
|
| 92 | - /** |
|
| 93 | - * @var array |
|
| 94 | - */ |
|
| 95 | - protected $types = []; |
|
| 96 | - |
|
| 97 | - /** |
|
| 98 | - * @var array |
|
| 99 | - */ |
|
| 100 | - protected $opening_hours = []; |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * @var int |
|
| 104 | - */ |
|
| 105 | - protected $price_level = 0; |
|
| 106 | - |
|
| 107 | - /** |
|
| 108 | - * @var bool |
|
| 109 | - */ |
|
| 110 | - protected $permanently_closed = false; |
|
| 111 | - |
|
| 112 | - /** |
|
| 113 | - * @var ReviewCollection |
|
| 114 | - */ |
|
| 115 | - protected $reviews = null; |
|
| 116 | - |
|
| 117 | - /** |
|
| 118 | - * @var int |
|
| 119 | - */ |
|
| 120 | - protected $utc_offset = 0; |
|
| 121 | - |
|
| 122 | - /** |
|
| 123 | - * @var string |
|
| 124 | - */ |
|
| 125 | - protected $website = ''; |
|
| 126 | - |
|
| 127 | - /** |
|
| 128 | - * @var string |
|
| 129 | - */ |
|
| 130 | - protected $international_phone_number = ''; |
|
| 131 | - |
|
| 132 | - /** |
|
| 133 | - * @var string |
|
| 134 | - */ |
|
| 135 | - protected $formatted_phone_number = ''; |
|
| 136 | - |
|
| 137 | - /** |
|
| 138 | - * @var string |
|
| 139 | - */ |
|
| 140 | - protected $adr_address = ''; |
|
| 141 | - |
|
| 142 | - /** |
|
| 143 | - * @var array |
|
| 144 | - */ |
|
| 145 | - protected $typeCheck = [ |
|
| 146 | - GoogleMapsResultFields::ADDRESS_COMPONENTS => Address::class, |
|
| 147 | - GoogleMapsResultFields::FORMATTED_ADDRESS => 'string', |
|
| 148 | - GoogleMapsResultFields::NAME => 'string', |
|
| 149 | - GoogleMapsResultFields::GEOMETRY => Geometry::class, |
|
| 150 | - GoogleMapsResultFields::ICON => 'string', |
|
| 151 | - GoogleMapsResultFields::ID => 'string', |
|
| 152 | - GoogleMapsResultFields::PHOTOS => PhotoCollection::class, |
|
| 153 | - GoogleMapsResultFields::PLACE_ID => 'string', |
|
| 154 | - GoogleMapsResultFields::REFERENCE => 'string', |
|
| 155 | - GoogleMapsResultFields::VICINITY => 'string', |
|
| 156 | - GoogleMapsResultFields::TYPES => 'array', |
|
| 157 | - GoogleMapsResultFields::OPENING_HOURS => 'json', |
|
| 158 | - GoogleMapsResultFields::PRICE_LEVEL => 'int', |
|
| 159 | - GoogleMapsResultFields::RATING => 'float', |
|
| 160 | - GoogleMapsResultFields::PERMANENTLY_CLOSED => 'bool', |
|
| 161 | - GoogleMapsResultFields::PLUS_CODE => 'array', |
|
| 162 | - GoogleMapsResultFields::REVIEWS => ReviewCollection::class, |
|
| 163 | - GoogleMapsResultFields::UTC_OFFSET => 'int', |
|
| 164 | - GoogleMapsResultFields::WEBSITE => 'string', |
|
| 165 | - GoogleMapsResultFields::INTERNATIONAL_PHONE_NUMBER => 'string', |
|
| 166 | - GoogleMapsResultFields::FORMATTED_PHONE_NUMBER => 'string', |
|
| 167 | - GoogleMapsResultFields::ADR_ADDRESS => 'string', |
|
| 168 | - ]; |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * @return bool|null |
|
| 172 | - */ |
|
| 173 | - public function getPermanentlyClose(): bool |
|
| 174 | - { |
|
| 175 | - |
|
| 176 | - return $this->permanently_closed ?? false; |
|
| 177 | - } |
|
| 42 | + /** |
|
| 43 | + * @var Address[] |
|
| 44 | + */ |
|
| 45 | + protected $address_components = null; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @var null|string |
|
| 49 | + */ |
|
| 50 | + protected $formatted_address = null; |
|
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @var string |
|
| 54 | + */ |
|
| 55 | + protected $name = ''; |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @var Geometry |
|
| 59 | + */ |
|
| 60 | + protected $geometry = null; |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @var string |
|
| 64 | + */ |
|
| 65 | + protected $icon = ''; |
|
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @var string |
|
| 69 | + */ |
|
| 70 | + protected $id = ''; |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * @var PhotoCollection |
|
| 74 | + */ |
|
| 75 | + protected $photos = null; |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @var string |
|
| 79 | + */ |
|
| 80 | + protected $place_id = ''; |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @var string |
|
| 84 | + */ |
|
| 85 | + protected $reference = ''; |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * @var string |
|
| 89 | + */ |
|
| 90 | + protected $vicinity = ''; |
|
| 91 | + |
|
| 92 | + /** |
|
| 93 | + * @var array |
|
| 94 | + */ |
|
| 95 | + protected $types = []; |
|
| 96 | + |
|
| 97 | + /** |
|
| 98 | + * @var array |
|
| 99 | + */ |
|
| 100 | + protected $opening_hours = []; |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * @var int |
|
| 104 | + */ |
|
| 105 | + protected $price_level = 0; |
|
| 106 | + |
|
| 107 | + /** |
|
| 108 | + * @var bool |
|
| 109 | + */ |
|
| 110 | + protected $permanently_closed = false; |
|
| 111 | + |
|
| 112 | + /** |
|
| 113 | + * @var ReviewCollection |
|
| 114 | + */ |
|
| 115 | + protected $reviews = null; |
|
| 116 | + |
|
| 117 | + /** |
|
| 118 | + * @var int |
|
| 119 | + */ |
|
| 120 | + protected $utc_offset = 0; |
|
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @var string |
|
| 124 | + */ |
|
| 125 | + protected $website = ''; |
|
| 126 | + |
|
| 127 | + /** |
|
| 128 | + * @var string |
|
| 129 | + */ |
|
| 130 | + protected $international_phone_number = ''; |
|
| 131 | + |
|
| 132 | + /** |
|
| 133 | + * @var string |
|
| 134 | + */ |
|
| 135 | + protected $formatted_phone_number = ''; |
|
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @var string |
|
| 139 | + */ |
|
| 140 | + protected $adr_address = ''; |
|
| 141 | + |
|
| 142 | + /** |
|
| 143 | + * @var array |
|
| 144 | + */ |
|
| 145 | + protected $typeCheck = [ |
|
| 146 | + GoogleMapsResultFields::ADDRESS_COMPONENTS => Address::class, |
|
| 147 | + GoogleMapsResultFields::FORMATTED_ADDRESS => 'string', |
|
| 148 | + GoogleMapsResultFields::NAME => 'string', |
|
| 149 | + GoogleMapsResultFields::GEOMETRY => Geometry::class, |
|
| 150 | + GoogleMapsResultFields::ICON => 'string', |
|
| 151 | + GoogleMapsResultFields::ID => 'string', |
|
| 152 | + GoogleMapsResultFields::PHOTOS => PhotoCollection::class, |
|
| 153 | + GoogleMapsResultFields::PLACE_ID => 'string', |
|
| 154 | + GoogleMapsResultFields::REFERENCE => 'string', |
|
| 155 | + GoogleMapsResultFields::VICINITY => 'string', |
|
| 156 | + GoogleMapsResultFields::TYPES => 'array', |
|
| 157 | + GoogleMapsResultFields::OPENING_HOURS => 'json', |
|
| 158 | + GoogleMapsResultFields::PRICE_LEVEL => 'int', |
|
| 159 | + GoogleMapsResultFields::RATING => 'float', |
|
| 160 | + GoogleMapsResultFields::PERMANENTLY_CLOSED => 'bool', |
|
| 161 | + GoogleMapsResultFields::PLUS_CODE => 'array', |
|
| 162 | + GoogleMapsResultFields::REVIEWS => ReviewCollection::class, |
|
| 163 | + GoogleMapsResultFields::UTC_OFFSET => 'int', |
|
| 164 | + GoogleMapsResultFields::WEBSITE => 'string', |
|
| 165 | + GoogleMapsResultFields::INTERNATIONAL_PHONE_NUMBER => 'string', |
|
| 166 | + GoogleMapsResultFields::FORMATTED_PHONE_NUMBER => 'string', |
|
| 167 | + GoogleMapsResultFields::ADR_ADDRESS => 'string', |
|
| 168 | + ]; |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @return bool|null |
|
| 172 | + */ |
|
| 173 | + public function getPermanentlyClose(): bool |
|
| 174 | + { |
|
| 175 | + |
|
| 176 | + return $this->permanently_closed ?? false; |
|
| 177 | + } |
|
| 178 | 178 | |
| 179 | 179 | } |
| 180 | 180 | \ No newline at end of file |