@@ -119,7 +119,7 @@ public function getContinent()
119
119
return $ this ->continent ;
120
120
}
121
121
122
- public function withContinent (string $ continent = null ): self
122
+ public function withContinent (? string $ continent = null ): self
123
123
{
124
124
$ new = clone $ this ;
125
125
$ new ->continent = $ continent ;
@@ -135,7 +135,7 @@ public function getCapital()
135
135
return $ this ->capital ;
136
136
}
137
137
138
- public function withCapital (string $ capital = null ): self
138
+ public function withCapital (? string $ capital = null ): self
139
139
{
140
140
$ new = clone $ this ;
141
141
$ new ->capital = $ capital ;
@@ -167,7 +167,7 @@ public function getGeonameId()
167
167
return $ this ->geonameId ;
168
168
}
169
169
170
- public function withGeonameId (int $ geonameId = null ): self
170
+ public function withGeonameId (? int $ geonameId = null ): self
171
171
{
172
172
$ new = clone $ this ;
173
173
$ new ->geonameId = null === $ geonameId ? null : (int ) $ geonameId ;
@@ -183,7 +183,7 @@ public function getIsoAlpha3()
183
183
return $ this ->isoAlpha3 ;
184
184
}
185
185
186
- public function withIsoAlpha3 (string $ isoAlpha3 = null ): self
186
+ public function withIsoAlpha3 (? string $ isoAlpha3 = null ): self
187
187
{
188
188
$ new = clone $ this ;
189
189
$ new ->isoAlpha3 = $ isoAlpha3 ;
@@ -199,7 +199,7 @@ public function getFipsCode()
199
199
return $ this ->fipsCode ;
200
200
}
201
201
202
- public function withFipsCode (string $ fipsCode = null ): self
202
+ public function withFipsCode (? string $ fipsCode = null ): self
203
203
{
204
204
$ new = clone $ this ;
205
205
$ new ->fipsCode = $ fipsCode ;
@@ -234,7 +234,7 @@ public function getIsoNumeric()
234
234
return $ this ->isoNumeric ;
235
235
}
236
236
237
- public function withIsoNumeric (string $ isoNumeric = null ): self
237
+ public function withIsoNumeric (? string $ isoNumeric = null ): self
238
238
{
239
239
$ new = clone $ this ;
240
240
$ new ->isoNumeric = null === $ isoNumeric ? null : (int ) $ isoNumeric ;
@@ -250,7 +250,7 @@ public function getAreaInSqKm()
250
250
return $ this ->areaInSqKm ;
251
251
}
252
252
253
- public function withAreaInSqKm (string $ areaInSqKm = null ): self
253
+ public function withAreaInSqKm (? string $ areaInSqKm = null ): self
254
254
{
255
255
$ new = clone $ this ;
256
256
$ new ->areaInSqKm = null === $ areaInSqKm ? null : (float ) $ areaInSqKm ;
@@ -266,7 +266,7 @@ public function getCountryCode()
266
266
return $ this ->countryCode ;
267
267
}
268
268
269
- public function withCountryCode (string $ countryCode = null ): self
269
+ public function withCountryCode (? string $ countryCode = null ): self
270
270
{
271
271
$ new = clone $ this ;
272
272
$ new ->countryCode = $ countryCode ;
@@ -282,7 +282,7 @@ public function getCountryName()
282
282
return $ this ->countryName ;
283
283
}
284
284
285
- public function withCountryName (string $ countryName = null ): self
285
+ public function withCountryName (? string $ countryName = null ): self
286
286
{
287
287
$ new = clone $ this ;
288
288
$ new ->countryName = $ countryName ;
@@ -298,7 +298,7 @@ public function getContinentName()
298
298
return $ this ->continentName ;
299
299
}
300
300
301
- public function withContinentName (string $ continentName = null ): self
301
+ public function withContinentName (? string $ continentName = null ): self
302
302
{
303
303
$ new = clone $ this ;
304
304
$ new ->continentName = $ continentName ;
@@ -314,7 +314,7 @@ public function getCurrencyCode()
314
314
return $ this ->currencyCode ;
315
315
}
316
316
317
- public function withCurrencyCode (string $ currencyCode = null ): self
317
+ public function withCurrencyCode (? string $ currencyCode = null ): self
318
318
{
319
319
$ new = clone $ this ;
320
320
$ new ->currencyCode = $ currencyCode ;
0 commit comments