@@ -61,12 +61,6 @@ class Item implements SerializableInterface, JsonSerializable
61
61
62
62
private $ mandatoryAnyOf ;
63
63
64
- /** @var ItemNullableObject|null */
65
- private $ nullableObject ;
66
-
67
- /** @var DateTimeInterface|null */
68
- private $ nullableDate ;
69
-
70
64
/** @var int|null */
71
65
private $ optionalInteger ;
72
66
@@ -146,26 +140,6 @@ public function __construct(int $mandatoryInteger, string $mandatoryString, stri
146
140
$ this ->mandatoryAnyOf = $ mandatoryAnyOf ;
147
141
}
148
142
149
- /**
150
- * @param ItemNullableObject|null $nullableObject
151
- */
152
- public function setNullableObject ($ nullableObject ): self
153
- {
154
- $ this ->nullableObject = $ nullableObject ;
155
-
156
- return $ this ;
157
- }
158
-
159
- /**
160
- * @param DateTimeInterface|null $nullableDate
161
- */
162
- public function setNullableDate ($ nullableDate ): self
163
- {
164
- $ this ->nullableDate = $ nullableDate ;
165
-
166
- return $ this ;
167
- }
168
-
169
143
public function setOptionalInteger (int $ optionalInteger ): self
170
144
{
171
145
$ this ->optionalInteger = $ optionalInteger ;
@@ -430,22 +404,6 @@ public function getMandatoryAnyOf()
430
404
return $ this ->mandatoryAnyOf ;
431
405
}
432
406
433
- /**
434
- * @return ItemNullableObject|null
435
- */
436
- public function getNullableObject ()
437
- {
438
- return $ this ->nullableObject ;
439
- }
440
-
441
- /**
442
- * @return DateTimeInterface|null
443
- */
444
- public function getNullableDate ()
445
- {
446
- return $ this ->nullableDate ;
447
- }
448
-
449
407
/**
450
408
* @return int|null
451
409
*/
@@ -598,8 +556,6 @@ public function toArray(): array
598
556
$ fields ['mandatoryNullableObjectWithAllOf ' ] = $ this ->mandatoryNullableObjectWithAllOf !== null ? $ this ->mandatoryNullableObjectWithAllOf ->toArray () : null ;
599
557
$ fields ['mandatoryMixed ' ] = $ this ->mandatoryMixed ;
600
558
$ fields ['mandatoryAnyOf ' ] = $ this ->mandatoryAnyOf ;
601
- $ fields ['nullableObject ' ] = $ this ->nullableObject !== null ? $ this ->nullableObject ->toArray () : null ;
602
- $ fields ['nullableDate ' ] = $ this ->nullableDate !== null ? $ this ->nullableDate ->format (DATE_RFC3339 ) : null ;
603
559
if ($ this ->optionalInteger !== null ) {
604
560
$ fields ['optionalInteger ' ] = $ this ->optionalInteger ;
605
561
}
0 commit comments