Skip to content

Commit ec75a1d

Browse files
committed
[php] Update samples.
1 parent a8dca35 commit ec75a1d

File tree

86 files changed

+456
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+456
-456
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function valid()
299299
/**
300300
* Gets map_property
301301
*
302-
* @return array<string,string>|null
302+
* @return array<string,string>
303303
*/
304304
public function getMapProperty()
305305
{
@@ -309,7 +309,7 @@ public function getMapProperty()
309309
/**
310310
* Sets map_property
311311
*
312-
* @param array<string,string>|null $map_property map_property
312+
* @param array<string,string> $map_property map_property
313313
*
314314
* @return self
315315
*/
@@ -326,7 +326,7 @@ public function setMapProperty($map_property)
326326
/**
327327
* Gets map_of_map_property
328328
*
329-
* @return array<string,array<string,string>>|null
329+
* @return array<string,array<string,string>>
330330
*/
331331
public function getMapOfMapProperty()
332332
{
@@ -336,7 +336,7 @@ public function getMapOfMapProperty()
336336
/**
337337
* Sets map_of_map_property
338338
*
339-
* @param array<string,array<string,string>>|null $map_of_map_property map_of_map_property
339+
* @param array<string,array<string,string>> $map_of_map_property map_of_map_property
340340
*
341341
* @return self
342342
*/

samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function valid()
299299
/**
300300
* Gets username
301301
*
302-
* @return string|null
302+
* @return string
303303
*/
304304
public function getUsername()
305305
{
@@ -309,7 +309,7 @@ public function getUsername()
309309
/**
310310
* Sets username
311311
*
312-
* @param string|null $username username
312+
* @param string $username username
313313
*
314314
* @return self
315315
*/
@@ -326,7 +326,7 @@ public function setUsername($username)
326326
/**
327327
* Gets single_ref_type
328328
*
329-
* @return \OpenAPI\Client\Model\SingleRefType|null
329+
* @return \OpenAPI\Client\Model\SingleRefType
330330
*/
331331
public function getSingleRefType()
332332
{
@@ -336,7 +336,7 @@ public function getSingleRefType()
336336
/**
337337
* Sets single_ref_type
338338
*
339-
* @param \OpenAPI\Client\Model\SingleRefType|null $single_ref_type single_ref_type
339+
* @param \OpenAPI\Client\Model\SingleRefType $single_ref_type single_ref_type
340340
*
341341
* @return self
342342
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function setClassName($class_name)
332332
/**
333333
* Gets color
334334
*
335-
* @return string|null
335+
* @return string
336336
*/
337337
public function getColor()
338338
{
@@ -342,7 +342,7 @@ public function getColor()
342342
/**
343343
* Sets color
344344
*
345-
* @param string|null $color color
345+
* @param string $color color
346346
*
347347
* @return self
348348
*/

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function valid()
306306
/**
307307
* Gets code
308308
*
309-
* @return int|null
309+
* @return int
310310
*/
311311
public function getCode()
312312
{
@@ -316,7 +316,7 @@ public function getCode()
316316
/**
317317
* Sets code
318318
*
319-
* @param int|null $code code
319+
* @param int $code code
320320
*
321321
* @return self
322322
*/
@@ -333,7 +333,7 @@ public function setCode($code)
333333
/**
334334
* Gets type
335335
*
336-
* @return string|null
336+
* @return string
337337
*/
338338
public function getType()
339339
{
@@ -343,7 +343,7 @@ public function getType()
343343
/**
344344
* Sets type
345345
*
346-
* @param string|null $type type
346+
* @param string $type type
347347
*
348348
* @return self
349349
*/
@@ -360,7 +360,7 @@ public function setType($type)
360360
/**
361361
* Gets message
362362
*
363-
* @return string|null
363+
* @return string
364364
*/
365365
public function getMessage()
366366
{
@@ -370,7 +370,7 @@ public function getMessage()
370370
/**
371371
* Sets message
372372
*
373-
* @param string|null $message message
373+
* @param string $message message
374374
*
375375
* @return self
376376
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function valid()
292292
/**
293293
* Gets array_array_number
294294
*
295-
* @return float[][]|null
295+
* @return float[][]
296296
*/
297297
public function getArrayArrayNumber()
298298
{
@@ -302,7 +302,7 @@ public function getArrayArrayNumber()
302302
/**
303303
* Sets array_array_number
304304
*
305-
* @param float[][]|null $array_array_number array_array_number
305+
* @param float[][] $array_array_number array_array_number
306306
*
307307
* @return self
308308
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function valid()
292292
/**
293293
* Gets array_number
294294
*
295-
* @return float[]|null
295+
* @return float[]
296296
*/
297297
public function getArrayNumber()
298298
{
@@ -302,7 +302,7 @@ public function getArrayNumber()
302302
/**
303303
* Sets array_number
304304
*
305-
* @param float[]|null $array_number array_number
305+
* @param float[] $array_number array_number
306306
*
307307
* @return self
308308
*/

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function valid()
314314
/**
315315
* Gets array_of_string
316316
*
317-
* @return string[]|null
317+
* @return string[]
318318
*/
319319
public function getArrayOfString()
320320
{
@@ -324,7 +324,7 @@ public function getArrayOfString()
324324
/**
325325
* Sets array_of_string
326326
*
327-
* @param string[]|null $array_of_string array_of_string
327+
* @param string[] $array_of_string array_of_string
328328
*
329329
* @return self
330330
*/
@@ -348,7 +348,7 @@ public function setArrayOfString($array_of_string)
348348
/**
349349
* Gets array_array_of_integer
350350
*
351-
* @return int[][]|null
351+
* @return int[][]
352352
*/
353353
public function getArrayArrayOfInteger()
354354
{
@@ -358,7 +358,7 @@ public function getArrayArrayOfInteger()
358358
/**
359359
* Sets array_array_of_integer
360360
*
361-
* @param int[][]|null $array_array_of_integer array_array_of_integer
361+
* @param int[][] $array_array_of_integer array_array_of_integer
362362
*
363363
* @return self
364364
*/
@@ -375,7 +375,7 @@ public function setArrayArrayOfInteger($array_array_of_integer)
375375
/**
376376
* Gets array_array_of_model
377377
*
378-
* @return \OpenAPI\Client\Model\ReadOnlyFirst[][]|null
378+
* @return \OpenAPI\Client\Model\ReadOnlyFirst[][]
379379
*/
380380
public function getArrayArrayOfModel()
381381
{
@@ -385,7 +385,7 @@ public function getArrayArrayOfModel()
385385
/**
386386
* Sets array_array_of_model
387387
*
388-
* @param \OpenAPI\Client\Model\ReadOnlyFirst[][]|null $array_array_of_model array_array_of_model
388+
* @param \OpenAPI\Client\Model\ReadOnlyFirst[][] $array_array_of_model array_array_of_model
389389
*
390390
* @return self
391391
*/

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function valid()
327327
/**
328328
* Gets small_camel
329329
*
330-
* @return string|null
330+
* @return string
331331
*/
332332
public function getSmallCamel()
333333
{
@@ -337,7 +337,7 @@ public function getSmallCamel()
337337
/**
338338
* Sets small_camel
339339
*
340-
* @param string|null $small_camel small_camel
340+
* @param string $small_camel small_camel
341341
*
342342
* @return self
343343
*/
@@ -354,7 +354,7 @@ public function setSmallCamel($small_camel)
354354
/**
355355
* Gets capital_camel
356356
*
357-
* @return string|null
357+
* @return string
358358
*/
359359
public function getCapitalCamel()
360360
{
@@ -364,7 +364,7 @@ public function getCapitalCamel()
364364
/**
365365
* Sets capital_camel
366366
*
367-
* @param string|null $capital_camel capital_camel
367+
* @param string $capital_camel capital_camel
368368
*
369369
* @return self
370370
*/
@@ -381,7 +381,7 @@ public function setCapitalCamel($capital_camel)
381381
/**
382382
* Gets small_snake
383383
*
384-
* @return string|null
384+
* @return string
385385
*/
386386
public function getSmallSnake()
387387
{
@@ -391,7 +391,7 @@ public function getSmallSnake()
391391
/**
392392
* Sets small_snake
393393
*
394-
* @param string|null $small_snake small_snake
394+
* @param string $small_snake small_snake
395395
*
396396
* @return self
397397
*/
@@ -408,7 +408,7 @@ public function setSmallSnake($small_snake)
408408
/**
409409
* Gets capital_snake
410410
*
411-
* @return string|null
411+
* @return string
412412
*/
413413
public function getCapitalSnake()
414414
{
@@ -418,7 +418,7 @@ public function getCapitalSnake()
418418
/**
419419
* Sets capital_snake
420420
*
421-
* @param string|null $capital_snake capital_snake
421+
* @param string $capital_snake capital_snake
422422
*
423423
* @return self
424424
*/
@@ -435,7 +435,7 @@ public function setCapitalSnake($capital_snake)
435435
/**
436436
* Gets sca_eth_flow_points
437437
*
438-
* @return string|null
438+
* @return string
439439
*/
440440
public function getScaEthFlowPoints()
441441
{
@@ -445,7 +445,7 @@ public function getScaEthFlowPoints()
445445
/**
446446
* Sets sca_eth_flow_points
447447
*
448-
* @param string|null $sca_eth_flow_points sca_eth_flow_points
448+
* @param string $sca_eth_flow_points sca_eth_flow_points
449449
*
450450
* @return self
451451
*/
@@ -462,7 +462,7 @@ public function setScaEthFlowPoints($sca_eth_flow_points)
462462
/**
463463
* Gets att_name
464464
*
465-
* @return string|null
465+
* @return string
466466
*/
467467
public function getAttName()
468468
{
@@ -472,7 +472,7 @@ public function getAttName()
472472
/**
473473
* Sets att_name
474474
*
475-
* @param string|null $att_name Name of the pet
475+
* @param string $att_name Name of the pet
476476
*
477477
* @return self
478478
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function valid()
286286
/**
287287
* Gets declawed
288288
*
289-
* @return bool|null
289+
* @return bool
290290
*/
291291
public function getDeclawed()
292292
{
@@ -296,7 +296,7 @@ public function getDeclawed()
296296
/**
297297
* Sets declawed
298298
*
299-
* @param bool|null $declawed declawed
299+
* @param bool $declawed declawed
300300
*
301301
* @return self
302302
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function valid()
302302
/**
303303
* Gets id
304304
*
305-
* @return int|null
305+
* @return int
306306
*/
307307
public function getId()
308308
{
@@ -312,7 +312,7 @@ public function getId()
312312
/**
313313
* Sets id
314314
*
315-
* @param int|null $id id
315+
* @param int $id id
316316
*
317317
* @return self
318318
*/

0 commit comments

Comments
 (0)