Skip to content

Commit 0fadea9

Browse files
authored
update php samples (#169)
1 parent 3beeb4e commit 0fadea9

30 files changed

Lines changed: 158 additions & 158 deletions

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function valid()
213213
/**
214214
* Gets map_property
215215
*
216-
* @return map[string,string]
216+
* @return map[string,string]|null
217217
*/
218218
public function getMapProperty()
219219
{
@@ -223,7 +223,7 @@ public function getMapProperty()
223223
/**
224224
* Sets map_property
225225
*
226-
* @param map[string,string] $map_property map_property
226+
* @param map[string,string]|null $map_property map_property
227227
*
228228
* @return $this
229229
*/
@@ -237,7 +237,7 @@ public function setMapProperty($map_property)
237237
/**
238238
* Gets map_of_map_property
239239
*
240-
* @return map[string,map[string,string]]
240+
* @return map[string,map[string,string]]|null
241241
*/
242242
public function getMapOfMapProperty()
243243
{
@@ -247,7 +247,7 @@ public function getMapOfMapProperty()
247247
/**
248248
* Sets map_of_map_property
249249
*
250-
* @param map[string,map[string,string]] $map_of_map_property map_of_map_property
250+
* @param map[string,map[string,string]]|null $map_of_map_property map_of_map_property
251251
*
252252
* @return $this
253253
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function setClassName($class_name)
244244
/**
245245
* Gets color
246246
*
247-
* @return string
247+
* @return string|null
248248
*/
249249
public function getColor()
250250
{
@@ -254,7 +254,7 @@ public function getColor()
254254
/**
255255
* Sets color
256256
*
257-
* @param string $color color
257+
* @param string|null $color color
258258
*
259259
* @return $this
260260
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function valid()
219219
/**
220220
* Gets code
221221
*
222-
* @return int
222+
* @return int|null
223223
*/
224224
public function getCode()
225225
{
@@ -229,7 +229,7 @@ public function getCode()
229229
/**
230230
* Sets code
231231
*
232-
* @param int $code code
232+
* @param int|null $code code
233233
*
234234
* @return $this
235235
*/
@@ -243,7 +243,7 @@ public function setCode($code)
243243
/**
244244
* Gets type
245245
*
246-
* @return string
246+
* @return string|null
247247
*/
248248
public function getType()
249249
{
@@ -253,7 +253,7 @@ public function getType()
253253
/**
254254
* Sets type
255255
*
256-
* @param string $type type
256+
* @param string|null $type type
257257
*
258258
* @return $this
259259
*/
@@ -267,7 +267,7 @@ public function setType($type)
267267
/**
268268
* Gets message
269269
*
270-
* @return string
270+
* @return string|null
271271
*/
272272
public function getMessage()
273273
{
@@ -277,7 +277,7 @@ public function getMessage()
277277
/**
278278
* Sets message
279279
*
280-
* @param string $message message
280+
* @param string|null $message message
281281
*
282282
* @return $this
283283
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function valid()
207207
/**
208208
* Gets array_array_number
209209
*
210-
* @return float[][]
210+
* @return float[][]|null
211211
*/
212212
public function getArrayArrayNumber()
213213
{
@@ -217,7 +217,7 @@ public function getArrayArrayNumber()
217217
/**
218218
* Sets array_array_number
219219
*
220-
* @param float[][] $array_array_number array_array_number
220+
* @param float[][]|null $array_array_number array_array_number
221221
*
222222
* @return $this
223223
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function valid()
207207
/**
208208
* Gets array_number
209209
*
210-
* @return float[]
210+
* @return float[]|null
211211
*/
212212
public function getArrayNumber()
213213
{
@@ -217,7 +217,7 @@ public function getArrayNumber()
217217
/**
218218
* Sets array_number
219219
*
220-
* @param float[] $array_number array_number
220+
* @param float[]|null $array_number array_number
221221
*
222222
* @return $this
223223
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function valid()
219219
/**
220220
* Gets array_of_string
221221
*
222-
* @return string[]
222+
* @return string[]|null
223223
*/
224224
public function getArrayOfString()
225225
{
@@ -229,7 +229,7 @@ public function getArrayOfString()
229229
/**
230230
* Sets array_of_string
231231
*
232-
* @param string[] $array_of_string array_of_string
232+
* @param string[]|null $array_of_string array_of_string
233233
*
234234
* @return $this
235235
*/
@@ -243,7 +243,7 @@ public function setArrayOfString($array_of_string)
243243
/**
244244
* Gets array_array_of_integer
245245
*
246-
* @return int[][]
246+
* @return int[][]|null
247247
*/
248248
public function getArrayArrayOfInteger()
249249
{
@@ -253,7 +253,7 @@ public function getArrayArrayOfInteger()
253253
/**
254254
* Sets array_array_of_integer
255255
*
256-
* @param int[][] $array_array_of_integer array_array_of_integer
256+
* @param int[][]|null $array_array_of_integer array_array_of_integer
257257
*
258258
* @return $this
259259
*/
@@ -267,7 +267,7 @@ public function setArrayArrayOfInteger($array_array_of_integer)
267267
/**
268268
* Gets array_array_of_model
269269
*
270-
* @return \OpenAPI\Client\Model\ReadOnlyFirst[][]
270+
* @return \OpenAPI\Client\Model\ReadOnlyFirst[][]|null
271271
*/
272272
public function getArrayArrayOfModel()
273273
{
@@ -277,7 +277,7 @@ public function getArrayArrayOfModel()
277277
/**
278278
* Sets array_array_of_model
279279
*
280-
* @param \OpenAPI\Client\Model\ReadOnlyFirst[][] $array_array_of_model array_array_of_model
280+
* @param \OpenAPI\Client\Model\ReadOnlyFirst[][]|null $array_array_of_model array_array_of_model
281281
*
282282
* @return $this
283283
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function valid()
237237
/**
238238
* Gets small_camel
239239
*
240-
* @return string
240+
* @return string|null
241241
*/
242242
public function getSmallCamel()
243243
{
@@ -247,7 +247,7 @@ public function getSmallCamel()
247247
/**
248248
* Sets small_camel
249249
*
250-
* @param string $small_camel small_camel
250+
* @param string|null $small_camel small_camel
251251
*
252252
* @return $this
253253
*/
@@ -261,7 +261,7 @@ public function setSmallCamel($small_camel)
261261
/**
262262
* Gets capital_camel
263263
*
264-
* @return string
264+
* @return string|null
265265
*/
266266
public function getCapitalCamel()
267267
{
@@ -271,7 +271,7 @@ public function getCapitalCamel()
271271
/**
272272
* Sets capital_camel
273273
*
274-
* @param string $capital_camel capital_camel
274+
* @param string|null $capital_camel capital_camel
275275
*
276276
* @return $this
277277
*/
@@ -285,7 +285,7 @@ public function setCapitalCamel($capital_camel)
285285
/**
286286
* Gets small_snake
287287
*
288-
* @return string
288+
* @return string|null
289289
*/
290290
public function getSmallSnake()
291291
{
@@ -295,7 +295,7 @@ public function getSmallSnake()
295295
/**
296296
* Sets small_snake
297297
*
298-
* @param string $small_snake small_snake
298+
* @param string|null $small_snake small_snake
299299
*
300300
* @return $this
301301
*/
@@ -309,7 +309,7 @@ public function setSmallSnake($small_snake)
309309
/**
310310
* Gets capital_snake
311311
*
312-
* @return string
312+
* @return string|null
313313
*/
314314
public function getCapitalSnake()
315315
{
@@ -319,7 +319,7 @@ public function getCapitalSnake()
319319
/**
320320
* Sets capital_snake
321321
*
322-
* @param string $capital_snake capital_snake
322+
* @param string|null $capital_snake capital_snake
323323
*
324324
* @return $this
325325
*/
@@ -333,7 +333,7 @@ public function setCapitalSnake($capital_snake)
333333
/**
334334
* Gets sca_eth_flow_points
335335
*
336-
* @return string
336+
* @return string|null
337337
*/
338338
public function getScaEthFlowPoints()
339339
{
@@ -343,7 +343,7 @@ public function getScaEthFlowPoints()
343343
/**
344344
* Sets sca_eth_flow_points
345345
*
346-
* @param string $sca_eth_flow_points sca_eth_flow_points
346+
* @param string|null $sca_eth_flow_points sca_eth_flow_points
347347
*
348348
* @return $this
349349
*/
@@ -357,7 +357,7 @@ public function setScaEthFlowPoints($sca_eth_flow_points)
357357
/**
358358
* Gets att_name
359359
*
360-
* @return string
360+
* @return string|null
361361
*/
362362
public function getAttName()
363363
{
@@ -367,7 +367,7 @@ public function getAttName()
367367
/**
368368
* Sets att_name
369369
*
370-
* @param string $att_name Name of the pet
370+
* @param string|null $att_name Name of the pet
371371
*
372372
* @return $this
373373
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function valid()
201201
/**
202202
* Gets declawed
203203
*
204-
* @return bool
204+
* @return bool|null
205205
*/
206206
public function getDeclawed()
207207
{
@@ -211,7 +211,7 @@ public function getDeclawed()
211211
/**
212212
* Sets declawed
213213
*
214-
* @param bool $declawed declawed
214+
* @param bool|null $declawed declawed
215215
*
216216
* @return $this
217217
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function valid()
213213
/**
214214
* Gets id
215215
*
216-
* @return int
216+
* @return int|null
217217
*/
218218
public function getId()
219219
{
@@ -223,7 +223,7 @@ public function getId()
223223
/**
224224
* Sets id
225225
*
226-
* @param int $id id
226+
* @param int|null $id id
227227
*
228228
* @return $this
229229
*/
@@ -237,7 +237,7 @@ public function setId($id)
237237
/**
238238
* Gets name
239239
*
240-
* @return string
240+
* @return string|null
241241
*/
242242
public function getName()
243243
{
@@ -247,7 +247,7 @@ public function getName()
247247
/**
248248
* Sets name
249249
*
250-
* @param string $name name
250+
* @param string|null $name name
251251
*
252252
* @return $this
253253
*/

samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function valid()
208208
/**
209209
* Gets _class
210210
*
211-
* @return string
211+
* @return string|null
212212
*/
213213
public function getClass()
214214
{
@@ -218,7 +218,7 @@ public function getClass()
218218
/**
219219
* Sets _class
220220
*
221-
* @param string $_class _class
221+
* @param string|null $_class _class
222222
*
223223
* @return $this
224224
*/

0 commit comments

Comments
 (0)