@@ -105,37 +105,37 @@ public function getProvidedBy(): string
105
105
return $ this ->providedBy ;
106
106
}
107
107
108
- public function getCoordinates ()
108
+ public function getCoordinates (): ? Coordinates
109
109
{
110
110
return $ this ->coordinates ;
111
111
}
112
112
113
- public function getBounds ()
113
+ public function getBounds (): ? Bounds
114
114
{
115
115
return $ this ->bounds ;
116
116
}
117
117
118
- public function getStreetNumber ()
118
+ public function getStreetNumber (): ? string
119
119
{
120
120
return $ this ->streetNumber ;
121
121
}
122
122
123
- public function getStreetName ()
123
+ public function getStreetName (): ? string
124
124
{
125
125
return $ this ->streetName ;
126
126
}
127
127
128
- public function getLocality ()
128
+ public function getLocality (): ? string
129
129
{
130
130
return $ this ->locality ;
131
131
}
132
132
133
- public function getPostalCode ()
133
+ public function getPostalCode (): ? string
134
134
{
135
135
return $ this ->postalCode ;
136
136
}
137
137
138
- public function getSubLocality ()
138
+ public function getSubLocality (): ? string
139
139
{
140
140
return $ this ->subLocality ;
141
141
}
@@ -145,19 +145,21 @@ public function getAdminLevels(): AdminLevelCollection
145
145
return $ this ->adminLevels ;
146
146
}
147
147
148
- public function getCountry ()
148
+ public function getCountry (): ? Country
149
149
{
150
150
return $ this ->country ;
151
151
}
152
152
153
- public function getTimezone ()
153
+ public function getTimezone (): ? string
154
154
{
155
155
return $ this ->timezone ;
156
156
}
157
157
158
158
/**
159
159
* Create an Address with an array. Useful for testing.
160
160
*
161
+ * @param array<string, mixed> $data
162
+ *
161
163
* @return static
162
164
*/
163
165
public static function createFromArray (array $ data )
@@ -259,7 +261,7 @@ private static function createCountry($name, $code)
259
261
*
260
262
* @return Bounds|null
261
263
*/
262
- private static function createBounds ($ south , $ west , $ north , $ east )
264
+ private static function createBounds (? float $ south , ? float $ west , ? float $ north , ? float $ east )
263
265
{
264
266
if (null === $ south || null === $ west || null === $ north || null === $ east ) {
265
267
return null ;
0 commit comments