@@ -231,7 +231,7 @@ public function getProperty(): ?string
231
231
return $ this ->property ;
232
232
}
233
233
234
- public function withProperty (string $ property ): self
234
+ public function withProperty (string $ property ): static
235
235
{
236
236
$ self = clone $ this ;
237
237
$ self ->property = $ property ;
@@ -244,7 +244,7 @@ public function getDescription(): ?string
244
244
return $ this ->description ;
245
245
}
246
246
247
- public function withDescription (string $ description ): self
247
+ public function withDescription (string $ description ): static
248
248
{
249
249
$ self = clone $ this ;
250
250
$ self ->description = $ description ;
@@ -257,7 +257,7 @@ public function isReadable(): ?bool
257
257
return $ this ->readable ;
258
258
}
259
259
260
- public function withReadable (bool $ readable ): self
260
+ public function withReadable (bool $ readable ): static
261
261
{
262
262
$ self = clone $ this ;
263
263
$ self ->readable = $ readable ;
@@ -270,7 +270,7 @@ public function isWritable(): ?bool
270
270
return $ this ->writable ;
271
271
}
272
272
273
- public function withWritable (bool $ writable ): self
273
+ public function withWritable (bool $ writable ): static
274
274
{
275
275
$ self = clone $ this ;
276
276
$ self ->writable = $ writable ;
@@ -283,7 +283,7 @@ public function isReadableLink(): ?bool
283
283
return $ this ->readableLink ;
284
284
}
285
285
286
- public function withReadableLink (bool $ readableLink ): self
286
+ public function withReadableLink (bool $ readableLink ): static
287
287
{
288
288
$ self = clone $ this ;
289
289
$ self ->readableLink = $ readableLink ;
@@ -296,7 +296,7 @@ public function isWritableLink(): ?bool
296
296
return $ this ->writableLink ;
297
297
}
298
298
299
- public function withWritableLink (bool $ writableLink ): self
299
+ public function withWritableLink (bool $ writableLink ): static
300
300
{
301
301
$ self = clone $ this ;
302
302
$ self ->writableLink = $ writableLink ;
@@ -309,7 +309,7 @@ public function isRequired(): ?bool
309
309
return $ this ->required ;
310
310
}
311
311
312
- public function withRequired (bool $ required ): self
312
+ public function withRequired (bool $ required ): static
313
313
{
314
314
$ self = clone $ this ;
315
315
$ self ->required = $ required ;
@@ -322,7 +322,7 @@ public function isIdentifier(): ?bool
322
322
return $ this ->identifier ;
323
323
}
324
324
325
- public function withIdentifier (bool $ identifier ): self
325
+ public function withIdentifier (bool $ identifier ): static
326
326
{
327
327
$ self = clone $ this ;
328
328
$ self ->identifier = $ identifier ;
@@ -335,7 +335,7 @@ public function getDefault()
335
335
return $ this ->default ;
336
336
}
337
337
338
- public function withDefault ($ default ): self
338
+ public function withDefault ($ default ): static
339
339
{
340
340
$ self = clone $ this ;
341
341
$ self ->default = $ default ;
@@ -348,7 +348,7 @@ public function getExample(): mixed
348
348
return $ this ->example ;
349
349
}
350
350
351
- public function withExample (mixed $ example ): self
351
+ public function withExample (mixed $ example ): static
352
352
{
353
353
$ self = clone $ this ;
354
354
$ self ->example = $ example ;
@@ -361,7 +361,7 @@ public function getDeprecationReason(): ?string
361
361
return $ this ->deprecationReason ;
362
362
}
363
363
364
- public function withDeprecationReason ($ deprecationReason ): self
364
+ public function withDeprecationReason ($ deprecationReason ): static
365
365
{
366
366
$ self = clone $ this ;
367
367
$ self ->deprecationReason = $ deprecationReason ;
@@ -374,7 +374,7 @@ public function isFetchable(): ?bool
374
374
return $ this ->fetchable ;
375
375
}
376
376
377
- public function withFetchable ($ fetchable ): self
377
+ public function withFetchable ($ fetchable ): static
378
378
{
379
379
$ self = clone $ this ;
380
380
$ self ->fetchable = $ fetchable ;
@@ -387,7 +387,7 @@ public function getFetchEager(): ?bool
387
387
return $ this ->fetchEager ;
388
388
}
389
389
390
- public function withFetchEager ($ fetchEager ): self
390
+ public function withFetchEager ($ fetchEager ): static
391
391
{
392
392
$ self = clone $ this ;
393
393
$ self ->fetchEager = $ fetchEager ;
@@ -400,7 +400,7 @@ public function getJsonldContext(): ?array
400
400
return $ this ->jsonldContext ;
401
401
}
402
402
403
- public function withJsonldContext ($ jsonldContext ): self
403
+ public function withJsonldContext ($ jsonldContext ): static
404
404
{
405
405
$ self = clone $ this ;
406
406
$ self ->jsonldContext = $ jsonldContext ;
@@ -413,7 +413,7 @@ public function getOpenapiContext(): ?array
413
413
return $ this ->openapiContext ;
414
414
}
415
415
416
- public function withOpenapiContext ($ openapiContext ): self
416
+ public function withOpenapiContext ($ openapiContext ): static
417
417
{
418
418
$ self = clone $ this ;
419
419
$ self ->openapiContext = $ openapiContext ;
@@ -426,7 +426,7 @@ public function getJsonSchemaContext(): ?array
426
426
return $ this ->jsonSchemaContext ;
427
427
}
428
428
429
- public function withJsonSchemaContext ($ jsonSchemaContext ): self
429
+ public function withJsonSchemaContext ($ jsonSchemaContext ): static
430
430
{
431
431
$ self = clone $ this ;
432
432
$ self ->jsonSchemaContext = $ jsonSchemaContext ;
@@ -439,7 +439,7 @@ public function getPush(): ?bool
439
439
return $ this ->push ;
440
440
}
441
441
442
- public function withPush ($ push ): self
442
+ public function withPush ($ push ): static
443
443
{
444
444
$ self = clone $ this ;
445
445
$ self ->push = $ push ;
@@ -452,7 +452,7 @@ public function getSecurity(): ?string
452
452
return $ this ->security instanceof \Stringable ? (string ) $ this ->security : $ this ->security ;
453
453
}
454
454
455
- public function withSecurity ($ security ): self
455
+ public function withSecurity ($ security ): static
456
456
{
457
457
$ self = clone $ this ;
458
458
$ self ->security = $ security ;
@@ -465,7 +465,7 @@ public function getSecurityPostDenormalize(): ?string
465
465
return $ this ->securityPostDenormalize instanceof \Stringable ? (string ) $ this ->securityPostDenormalize : $ this ->securityPostDenormalize ;
466
466
}
467
467
468
- public function withSecurityPostDenormalize ($ securityPostDenormalize ): self
468
+ public function withSecurityPostDenormalize ($ securityPostDenormalize ): static
469
469
{
470
470
$ self = clone $ this ;
471
471
$ self ->securityPostDenormalize = $ securityPostDenormalize ;
@@ -481,7 +481,7 @@ public function getTypes(): ?array
481
481
/**
482
482
* @param string[]|string $types
483
483
*/
484
- public function withTypes (array |string $ types = []): self
484
+ public function withTypes (array |string $ types = []): static
485
485
{
486
486
$ self = clone $ this ;
487
487
$ self ->types = (array ) $ types ;
@@ -500,7 +500,7 @@ public function getBuiltinTypes(): ?array
500
500
/**
501
501
* @param Type[] $builtinTypes
502
502
*/
503
- public function withBuiltinTypes (array $ builtinTypes = []): self
503
+ public function withBuiltinTypes (array $ builtinTypes = []): static
504
504
{
505
505
$ self = clone $ this ;
506
506
$ self ->builtinTypes = $ builtinTypes ;
@@ -513,15 +513,15 @@ public function getSchema(): ?array
513
513
return $ this ->schema ;
514
514
}
515
515
516
- public function withSchema (array $ schema = []): self
516
+ public function withSchema (array $ schema = []): static
517
517
{
518
518
$ self = clone $ this ;
519
519
$ self ->schema = $ schema ;
520
520
521
521
return $ self ;
522
522
}
523
523
524
- public function withInitializable (bool $ initializable ): self
524
+ public function withInitializable (? bool $ initializable ): static
525
525
{
526
526
$ self = clone $ this ;
527
527
$ self ->initializable = $ initializable ;
@@ -539,7 +539,7 @@ public function getExtraProperties(): ?array
539
539
return $ this ->extraProperties ;
540
540
}
541
541
542
- public function withExtraProperties (array $ extraProperties = []): self
542
+ public function withExtraProperties (array $ extraProperties = []): static
543
543
{
544
544
$ self = clone $ this ;
545
545
$ self ->extraProperties = $ extraProperties ;
@@ -560,7 +560,7 @@ public function getIris()
560
560
*
561
561
* @param string|string[] $iris
562
562
*/
563
- public function withIris (string |array $ iris ): self
563
+ public function withIris (string |array $ iris ): static
564
564
{
565
565
$ metadata = clone $ this ;
566
566
$ metadata ->iris = (array ) $ iris ;
@@ -576,7 +576,7 @@ public function getGenId()
576
576
return $ this ->genId ;
577
577
}
578
578
579
- public function withGenId (bool $ genId ): self
579
+ public function withGenId (bool $ genId ): static
580
580
{
581
581
$ metadata = clone $ this ;
582
582
$ metadata ->genId = $ genId ;
@@ -594,7 +594,7 @@ public function getUriTemplate(): ?string
594
594
return $ this ->uriTemplate ;
595
595
}
596
596
597
- public function withUriTemplate (?string $ uriTemplate ): self
597
+ public function withUriTemplate (?string $ uriTemplate ): static
598
598
{
599
599
$ metadata = clone $ this ;
600
600
$ metadata ->uriTemplate = $ uriTemplate ;
0 commit comments