• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 3713148714

pending completion
3713148714

push

github

GitHub
feat(openapi): add ApiResource::openapi and deprecate openapiContext (#5254)

197 of 197 new or added lines in 5 files covered. (100.0%)

7493 of 12362 relevant lines covered (60.61%)

81.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.91
/src/Metadata/ApiResource.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Metadata;
15

16
use ApiPlatform\Metadata\GraphQl\Operation as GraphQlOperation;
17
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
18

19
/**
20
 * Resource metadata attribute.
21
 *
22
 * @Annotation
23
 *
24
 * @author Antoine Bluchet <soyuka@gmail.com>
25
 */
26
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
27
class ApiResource
28
{
29
    use WithResourceTrait;
30

31
    protected ?Operations $operations;
32
    /**
33
     * @var string|callable|null
34
     */
35
    protected $provider;
36
    /**
37
     * @var string|callable|null
38
     */
39
    protected $processor;
40

41
    /**
42
     * @param array|string|null                                               $types                          The RDF types of this resource
43
     * @param mixed|null                                                      $operations
44
     * @param array|string|null                                               $formats                        https://api-platform.com/docs/core/content-negotiation/#configuring-formats-for-a-specific-resource-or-operation
45
     * @param array|string|null                                               $inputFormats                   https://api-platform.com/docs/core/content-negotiation/#configuring-formats-for-a-specific-resource-or-operation
46
     * @param array|string|null                                               $outputFormats                  https://api-platform.com/docs/core/content-negotiation/#configuring-formats-for-a-specific-resource-or-operation
47
     * @param array<string, Link>|array<string, mixed[]>|string[]|string|null $uriVariables
48
     * @param string|null                                                     $routePrefix                    https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations
49
     * @param string|null                                                     $sunset                         https://api-platform.com/docs/core/deprecations/#setting-the-sunset-http-header-to-indicate-when-a-resource-or-an-operation-will-be-removed
50
     * @param string|null                                                     $deprecationReason              https://api-platform.com/docs/core/deprecations/#deprecating-resource-classes-operations-and-properties
51
     * @param array|null                                                      $cacheHeaders                   https://api-platform.com/docs/core/performance/#setting-custom-http-cache-headers
52
     * @param array|null                                                      $normalizationContext           https://api-platform.com/docs/core/serialization/#using-serialization-groups
53
     * @param array|null                                                      $denormalizationContext         https://api-platform.com/docs/core/serialization/#using-serialization-groups
54
     * @param string[]|null                                                   $hydraContext                   https://api-platform.com/docs/core/extending-jsonld-context/#hydra
55
     * @param array|null                                                      $openapiContext                 https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts
56
     * @param bool|OpenApiOperation|null                                      $openapi                        https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts
57
     * @param array|null                                                      $validationContext              https://api-platform.com/docs/core/validation/#using-validation-groups
58
     * @param string[]                                                        $filters                        https://api-platform.com/docs/core/filters/#doctrine-orm-and-mongodb-odm-filters
59
     * @param bool|null                                                       $elasticsearch                  https://api-platform.com/docs/core/elasticsearch/
60
     * @param mixed|null                                                      $mercure                        https://api-platform.com/docs/core/mercure
61
     * @param mixed|null                                                      $messenger                      https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus
62
     * @param mixed|null                                                      $input                          https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation
63
     * @param mixed|null                                                      $output                         https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation
64
     * @param array|null                                                      $order                          https://api-platform.com/docs/core/default-order/#overriding-default-order
65
     * @param bool|null                                                       $fetchPartial                   https://api-platform.com/docs/core/performance/#fetch-partial
66
     * @param bool|null                                                       $forceEager                     https://api-platform.com/docs/core/performance/#force-eager
67
     * @param bool|null                                                       $paginationClientEnabled        https://api-platform.com/docs/core/pagination/#for-a-specific-resource-1
68
     * @param bool|null                                                       $paginationClientItemsPerPage   https://api-platform.com/docs/core/pagination/#for-a-specific-resource-3
69
     * @param bool|null                                                       $paginationClientPartial        https://api-platform.com/docs/core/pagination/#for-a-specific-resource-6
70
     * @param array|null                                                      $paginationViaCursor            https://api-platform.com/docs/core/pagination/#cursor-based-pagination
71
     * @param bool|null                                                       $paginationEnabled              https://api-platform.com/docs/core/pagination/#for-a-specific-resource
72
     * @param bool|null                                                       $paginationFetchJoinCollection  https://api-platform.com/docs/core/pagination/#controlling-the-behavior-of-the-doctrine-orm-paginator
73
     * @param int|null                                                        $paginationItemsPerPage         https://api-platform.com/docs/core/pagination/#changing-the-number-of-items-per-page
74
     * @param int|null                                                        $paginationMaximumItemsPerPage  https://api-platform.com/docs/core/pagination/#changing-maximum-items-per-page
75
     * @param bool|null                                                       $paginationPartial              https://api-platform.com/docs/core/performance/#partial-pagination
76
     * @param string|null                                                     $paginationType                 https://api-platform.com/docs/core/graphql/#using-the-page-based-pagination
77
     * @param string|null                                                     $security                       https://api-platform.com/docs/core/security
78
     * @param string|null                                                     $securityMessage                https://api-platform.com/docs/core/security/#configuring-the-access-control-error-message
79
     * @param string|null                                                     $securityPostDenormalize        https://api-platform.com/docs/core/security/#executing-access-control-rules-after-denormalization
80
     * @param string|null                                                     $securityPostDenormalizeMessage https://api-platform.com/docs/core/security/#configuring-the-access-control-error-message
81
     * @param string                                                          $securityPostValidation         https://api-platform.com/docs/core/security/#executing-access-control-rules-after-validtion
82
     * @param string                                                          $securityPostValidationMessage  https://api-platform.com/docs/core/security/#configuring-the-access-control-error-message
83
     * @param mixed|null                                                      $provider
84
     * @param mixed|null                                                      $processor
85
     */
86
    public function __construct(
87
        protected ?string $uriTemplate = null,
88
        protected ?string $shortName = null,
89
        protected ?string $description = null,
90
        protected string|array|null $types = null,
91
        $operations = null,
92
        protected $formats = null,
93
        protected $inputFormats = null,
94
        protected $outputFormats = null,
95
        protected $uriVariables = null,
96
        protected ?string $routePrefix = null,
97
        protected ?array $defaults = null,
98
        protected ?array $requirements = null,
99
        protected ?array $options = null,
100
        protected ?bool $stateless = null,
101
        protected ?string $sunset = null,
102
        protected ?string $acceptPatch = null,
103
        protected ?int $status = null,
104
        protected ?string $host = null,
105
        protected ?array $schemes = null,
106
        protected ?string $condition = null,
107
        protected ?string $controller = null,
108
        protected ?string $class = null,
109
        protected ?int $urlGenerationStrategy = null,
110
        protected ?string $deprecationReason = null,
111
        protected ?array $cacheHeaders = null,
112
        protected ?array $normalizationContext = null,
113
        protected ?array $denormalizationContext = null,
114
        protected ?array $hydraContext = null,
115
        protected ?array $openapiContext = null, // TODO Remove in 4.0
116
        protected bool|OpenApiOperation|null $openapi = null,
117
        protected ?array $validationContext = null,
118
        protected ?array $filters = null,
119
        protected ?bool $elasticsearch = null,
120
        protected $mercure = null,
121
        protected $messenger = null,
122
        protected $input = null,
123
        protected $output = null,
124
        protected ?array $order = null,
125
        protected ?bool $fetchPartial = null,
126
        protected ?bool $forceEager = null,
127
        protected ?bool $paginationClientEnabled = null,
128
        protected ?bool $paginationClientItemsPerPage = null,
129
        protected ?bool $paginationClientPartial = null,
130
        protected ?array $paginationViaCursor = null,
131
        protected ?bool $paginationEnabled = null,
132
        protected ?bool $paginationFetchJoinCollection = null,
133
        protected ?bool $paginationUseOutputWalkers = null,
134
        protected ?int $paginationItemsPerPage = null,
135
        protected ?int $paginationMaximumItemsPerPage = null,
136
        protected ?bool $paginationPartial = null,
137
        protected ?string $paginationType = null,
138
        protected ?string $security = null,
139
        protected ?string $securityMessage = null,
140
        protected ?string $securityPostDenormalize = null,
141
        protected ?string $securityPostDenormalizeMessage = null,
142
        protected ?string $securityPostValidation = null,
143
        protected ?string $securityPostValidationMessage = null,
144
        protected ?bool $compositeIdentifier = null,
145
        protected ?array $exceptionToStatus = null,
146
        protected ?bool $queryParameterValidationEnabled = null,
147
        protected ?array $graphQlOperations = null,
148
        $provider = null,
149
        $processor = null,
150
        protected array $extraProperties = []
151
    ) {
152
        $this->operations = null === $operations ? null : new Operations($operations);
20✔
153
        $this->provider = $provider;
20✔
154
        $this->processor = $processor;
20✔
155
        if (\is_string($types)) {
20✔
156
            $this->types = (array) $types;
×
157
        }
158
    }
159

160
    public function getOperations(): ?Operations
161
    {
162
        return $this->operations;
756✔
163
    }
164

165
    public function withOperations(Operations $operations): self
166
    {
167
        $self = clone $this;
20✔
168
        $self->operations = $operations;
20✔
169

170
        return $self;
20✔
171
    }
172

173
    public function getUriTemplate(): ?string
174
    {
175
        return $this->uriTemplate;
20✔
176
    }
177

178
    public function withUriTemplate(string $uriTemplate): self
179
    {
180
        $self = clone $this;
1✔
181
        $self->uriTemplate = $uriTemplate;
1✔
182

183
        return $self;
1✔
184
    }
185

186
    public function getShortName(): ?string
187
    {
188
        return $this->shortName;
528✔
189
    }
190

191
    public function withShortName(string $shortName): self
192
    {
193
        $self = clone $this;
20✔
194
        $self->shortName = $shortName;
20✔
195

196
        return $self;
20✔
197
    }
198

199
    public function getDescription(): ?string
200
    {
201
        return $this->description;
24✔
202
    }
203

204
    public function withDescription(string $description): self
205
    {
206
        $self = clone $this;
13✔
207
        $self->description = $description;
13✔
208

209
        return $self;
13✔
210
    }
211

212
    public function getTypes(): ?array
213
    {
214
        return $this->types;
24✔
215
    }
216

217
    /**
218
     * @param string[]|string $types
219
     */
220
    public function withTypes(array|string $types): self
221
    {
222
        $self = clone $this;
1✔
223
        $self->types = (array) $types;
1✔
224

225
        return $self;
1✔
226
    }
227

228
    /**
229
     * @return array|mixed|string|null
230
     */
231
    public function getFormats()
232
    {
233
        return $this->formats;
20✔
234
    }
235

236
    /**
237
     * @param mixed|null $formats
238
     */
239
    public function withFormats($formats): self
240
    {
241
        $self = clone $this;
×
242
        $self->formats = $formats;
×
243

244
        return $self;
×
245
    }
246

247
    /**
248
     * @return array|mixed|string|null
249
     */
250
    public function getInputFormats()
251
    {
252
        return $this->inputFormats;
20✔
253
    }
254

255
    /**
256
     * @param mixed|null $inputFormats
257
     */
258
    public function withInputFormats($inputFormats): self
259
    {
260
        $self = clone $this;
×
261
        $self->inputFormats = $inputFormats;
×
262

263
        return $self;
×
264
    }
265

266
    /**
267
     * @return array|mixed|string|null
268
     */
269
    public function getOutputFormats()
270
    {
271
        return $this->outputFormats;
20✔
272
    }
273

274
    /**
275
     * @param mixed|null $outputFormats
276
     */
277
    public function withOutputFormats($outputFormats): self
278
    {
279
        $self = clone $this;
×
280
        $self->outputFormats = $outputFormats;
×
281

282
        return $self;
×
283
    }
284

285
    /**
286
     * @return array<string, Link>|array<string, array>|string[]|string|null
287
     */
288
    public function getUriVariables()
289
    {
290
        return $this->uriVariables;
20✔
291
    }
292

293
    /**
294
     * @param array<string, Link>|array<string, array>|string[]|string|null $uriVariables
295
     */
296
    public function withUriVariables($uriVariables): self
297
    {
298
        $self = clone $this;
20✔
299
        $self->uriVariables = $uriVariables;
20✔
300

301
        return $self;
20✔
302
    }
303

304
    public function getRoutePrefix(): ?string
305
    {
306
        return $this->routePrefix;
20✔
307
    }
308

309
    public function withRoutePrefix(string $routePrefix): self
310
    {
311
        $self = clone $this;
×
312
        $self->routePrefix = $routePrefix;
×
313

314
        return $self;
×
315
    }
316

317
    public function getDefaults(): ?array
318
    {
319
        return $this->defaults;
20✔
320
    }
321

322
    public function withDefaults(array $defaults): self
323
    {
324
        $self = clone $this;
×
325
        $self->defaults = $defaults;
×
326

327
        return $self;
×
328
    }
329

330
    public function getRequirements(): ?array
331
    {
332
        return $this->requirements;
20✔
333
    }
334

335
    public function withRequirements(array $requirements): self
336
    {
337
        $self = clone $this;
×
338
        $self->requirements = $requirements;
×
339

340
        return $self;
×
341
    }
342

343
    public function getOptions(): ?array
344
    {
345
        return $this->options;
20✔
346
    }
347

348
    public function withOptions(array $options): self
349
    {
350
        $self = clone $this;
×
351
        $self->options = $options;
×
352

353
        return $self;
×
354
    }
355

356
    public function getStateless(): ?bool
357
    {
358
        return $this->stateless;
20✔
359
    }
360

361
    public function withStateless(bool $stateless): self
362
    {
363
        $self = clone $this;
×
364
        $self->stateless = $stateless;
×
365

366
        return $self;
×
367
    }
368

369
    public function getSunset(): ?string
370
    {
371
        return $this->sunset;
20✔
372
    }
373

374
    public function withSunset(string $sunset): self
375
    {
376
        $self = clone $this;
×
377
        $self->sunset = $sunset;
×
378

379
        return $self;
×
380
    }
381

382
    public function getAcceptPatch(): ?string
383
    {
384
        return $this->acceptPatch;
20✔
385
    }
386

387
    public function withAcceptPatch(string $acceptPatch): self
388
    {
389
        $self = clone $this;
×
390
        $self->acceptPatch = $acceptPatch;
×
391

392
        return $self;
×
393
    }
394

395
    public function getStatus(): ?int
396
    {
397
        return $this->status;
20✔
398
    }
399

400
    public function withStatus($status): self
401
    {
402
        $self = clone $this;
×
403
        $self->status = $status;
×
404

405
        return $self;
×
406
    }
407

408
    public function getHost(): ?string
409
    {
410
        return $this->host;
20✔
411
    }
412

413
    public function withHost(string $host): self
414
    {
415
        $self = clone $this;
×
416
        $self->host = $host;
×
417

418
        return $self;
×
419
    }
420

421
    public function getSchemes(): ?array
422
    {
423
        return $this->schemes;
20✔
424
    }
425

426
    public function withSchemes(array $schemes): self
427
    {
428
        $self = clone $this;
×
429
        $self->schemes = $schemes;
×
430

431
        return $self;
×
432
    }
433

434
    public function getCondition(): ?string
435
    {
436
        return $this->condition;
20✔
437
    }
438

439
    public function withCondition(string $condition): self
440
    {
441
        $self = clone $this;
×
442
        $self->condition = $condition;
×
443

444
        return $self;
×
445
    }
446

447
    public function getController(): ?string
448
    {
449
        return $this->controller;
20✔
450
    }
451

452
    public function withController(string $controller): self
453
    {
454
        $self = clone $this;
×
455
        $self->controller = $controller;
×
456

457
        return $self;
×
458
    }
459

460
    public function getClass(): ?string
461
    {
462
        return $this->class;
20✔
463
    }
464

465
    public function withClass(string $class): self
466
    {
467
        $self = clone $this;
20✔
468
        $self->class = $class;
20✔
469

470
        return $self;
20✔
471
    }
472

473
    public function getUrlGenerationStrategy(): ?int
474
    {
475
        return $this->urlGenerationStrategy;
389✔
476
    }
477

478
    public function withUrlGenerationStrategy(int $urlGenerationStrategy): self
479
    {
480
        $self = clone $this;
×
481
        $self->urlGenerationStrategy = $urlGenerationStrategy;
×
482

483
        return $self;
×
484
    }
485

486
    public function getDeprecationReason(): ?string
487
    {
488
        return $this->deprecationReason;
24✔
489
    }
490

491
    public function withDeprecationReason(string $deprecationReason): self
492
    {
493
        $self = clone $this;
×
494
        $self->deprecationReason = $deprecationReason;
×
495

496
        return $self;
×
497
    }
498

499
    public function getCacheHeaders(): ?array
500
    {
501
        return $this->cacheHeaders;
20✔
502
    }
503

504
    public function withCacheHeaders(array $cacheHeaders): self
505
    {
506
        $self = clone $this;
20✔
507
        $self->cacheHeaders = $cacheHeaders;
20✔
508

509
        return $self;
20✔
510
    }
511

512
    public function getNormalizationContext(): ?array
513
    {
514
        return $this->normalizationContext;
24✔
515
    }
516

517
    public function withNormalizationContext(array $normalizationContext): self
518
    {
519
        $self = clone $this;
20✔
520
        $self->normalizationContext = $normalizationContext;
20✔
521

522
        return $self;
20✔
523
    }
524

525
    public function getDenormalizationContext(): ?array
526
    {
527
        return $this->denormalizationContext;
24✔
528
    }
529

530
    public function withDenormalizationContext(array $denormalizationContext): self
531
    {
532
        $self = clone $this;
×
533
        $self->denormalizationContext = $denormalizationContext;
×
534

535
        return $self;
×
536
    }
537

538
    /**
539
     * @return string[]|null
540
     */
541
    public function getHydraContext(): ?array
542
    {
543
        return $this->hydraContext;
20✔
544
    }
545

546
    public function withHydraContext(array $hydraContext): self
547
    {
548
        $self = clone $this;
×
549
        $self->hydraContext = $hydraContext;
×
550

551
        return $self;
×
552
    }
553

554
    /**
555
     * TODO Remove in 4.0.
556
     *
557
     * @deprecated
558
     */
559
    public function getOpenapiContext(): ?array
560
    {
561
        return $this->openapiContext;
20✔
562
    }
563

564
    /**
565
     * TODO Remove in 4.0.
566
     *
567
     * @deprecated
568
     */
569
    public function withOpenapiContext(array $openapiContext): self
570
    {
571
        $self = clone $this;
×
572
        $self->openapiContext = $openapiContext;
×
573

574
        return $self;
×
575
    }
576

577
    public function getOpenapi(): bool|OpenApiOperation|null
578
    {
579
        return $this->openapi;
20✔
580
    }
581

582
    public function withOpenapi(bool|OpenApiOperation $openapi): self
583
    {
584
        $self = clone $this;
×
585
        $self->openapi = $openapi;
×
586

587
        return $self;
×
588
    }
589

590
    public function getValidationContext(): ?array
591
    {
592
        return $this->validationContext;
20✔
593
    }
594

595
    public function withValidationContext(array $validationContext): self
596
    {
597
        $self = clone $this;
×
598
        $self->validationContext = $validationContext;
×
599

600
        return $self;
×
601
    }
602

603
    /**
604
     * @return string[]|null
605
     */
606
    public function getFilters(): ?array
607
    {
608
        return $this->filters;
20✔
609
    }
610

611
    public function withFilters(array $filters): self
612
    {
613
        $self = clone $this;
×
614
        $self->filters = $filters;
×
615

616
        return $self;
×
617
    }
618

619
    public function getElasticsearch(): ?bool
620
    {
621
        return $this->elasticsearch;
20✔
622
    }
623

624
    public function withElasticsearch(bool $elasticsearch): self
625
    {
626
        $self = clone $this;
×
627
        $self->elasticsearch = $elasticsearch;
×
628

629
        return $self;
×
630
    }
631

632
    /**
633
     * @return array|bool|mixed|null
634
     */
635
    public function getMercure()
636
    {
637
        return $this->mercure;
20✔
638
    }
639

640
    public function withMercure($mercure): self
641
    {
642
        $self = clone $this;
×
643
        $self->mercure = $mercure;
×
644

645
        return $self;
×
646
    }
647

648
    public function getMessenger()
649
    {
650
        return $this->messenger;
20✔
651
    }
652

653
    public function withMessenger($messenger): self
654
    {
655
        $self = clone $this;
×
656
        $self->messenger = $messenger;
×
657

658
        return $self;
×
659
    }
660

661
    public function getInput()
662
    {
663
        return $this->input;
20✔
664
    }
665

666
    public function withInput($input): self
667
    {
668
        $self = clone $this;
20✔
669
        $self->input = $input;
20✔
670

671
        return $self;
20✔
672
    }
673

674
    public function getOutput()
675
    {
676
        return $this->output;
20✔
677
    }
678

679
    public function withOutput($output): self
680
    {
681
        $self = clone $this;
20✔
682
        $self->output = $output;
20✔
683

684
        return $self;
20✔
685
    }
686

687
    public function getOrder(): ?array
688
    {
689
        return $this->order;
20✔
690
    }
691

692
    public function withOrder(array $order): self
693
    {
694
        $self = clone $this;
×
695
        $self->order = $order;
×
696

697
        return $self;
×
698
    }
699

700
    public function getFetchPartial(): ?bool
701
    {
702
        return $this->fetchPartial;
20✔
703
    }
704

705
    public function withFetchPartial(bool $fetchPartial): self
706
    {
707
        $self = clone $this;
×
708
        $self->fetchPartial = $fetchPartial;
×
709

710
        return $self;
×
711
    }
712

713
    public function getForceEager(): ?bool
714
    {
715
        return $this->forceEager;
20✔
716
    }
717

718
    public function withForceEager(bool $forceEager): self
719
    {
720
        $self = clone $this;
×
721
        $self->forceEager = $forceEager;
×
722

723
        return $self;
×
724
    }
725

726
    public function getPaginationClientEnabled(): ?bool
727
    {
728
        return $this->paginationClientEnabled;
20✔
729
    }
730

731
    public function withPaginationClientEnabled(bool $paginationClientEnabled): self
732
    {
733
        $self = clone $this;
20✔
734
        $self->paginationClientEnabled = $paginationClientEnabled;
20✔
735

736
        return $self;
20✔
737
    }
738

739
    public function getPaginationClientItemsPerPage(): ?bool
740
    {
741
        return $this->paginationClientItemsPerPage;
20✔
742
    }
743

744
    public function withPaginationClientItemsPerPage(bool $paginationClientItemsPerPage): self
745
    {
746
        $self = clone $this;
20✔
747
        $self->paginationClientItemsPerPage = $paginationClientItemsPerPage;
20✔
748

749
        return $self;
20✔
750
    }
751

752
    public function getPaginationClientPartial(): ?bool
753
    {
754
        return $this->paginationClientPartial;
20✔
755
    }
756

757
    public function withPaginationClientPartial(bool $paginationClientPartial): self
758
    {
759
        $self = clone $this;
20✔
760
        $self->paginationClientPartial = $paginationClientPartial;
20✔
761

762
        return $self;
20✔
763
    }
764

765
    public function getPaginationViaCursor(): ?array
766
    {
767
        return $this->paginationViaCursor;
20✔
768
    }
769

770
    public function withPaginationViaCursor(array $paginationViaCursor): self
771
    {
772
        $self = clone $this;
×
773
        $self->paginationViaCursor = $paginationViaCursor;
×
774

775
        return $self;
×
776
    }
777

778
    public function getPaginationEnabled(): ?bool
779
    {
780
        return $this->paginationEnabled;
20✔
781
    }
782

783
    public function withPaginationEnabled(bool $paginationEnabled): self
784
    {
785
        $self = clone $this;
×
786
        $self->paginationEnabled = $paginationEnabled;
×
787

788
        return $self;
×
789
    }
790

791
    public function getPaginationFetchJoinCollection(): ?bool
792
    {
793
        return $this->paginationFetchJoinCollection;
20✔
794
    }
795

796
    public function withPaginationFetchJoinCollection(bool $paginationFetchJoinCollection): self
797
    {
798
        $self = clone $this;
×
799
        $self->paginationFetchJoinCollection = $paginationFetchJoinCollection;
×
800

801
        return $self;
×
802
    }
803

804
    public function getPaginationUseOutputWalkers(): ?bool
805
    {
806
        return $this->paginationUseOutputWalkers;
20✔
807
    }
808

809
    public function withPaginationUseOutputWalkers(bool $paginationUseOutputWalkers): self
810
    {
811
        $self = clone $this;
×
812
        $self->paginationUseOutputWalkers = $paginationUseOutputWalkers;
×
813

814
        return $self;
×
815
    }
816

817
    public function getPaginationItemsPerPage(): ?int
818
    {
819
        return $this->paginationItemsPerPage;
20✔
820
    }
821

822
    public function withPaginationItemsPerPage(int $paginationItemsPerPage): self
823
    {
824
        $self = clone $this;
20✔
825
        $self->paginationItemsPerPage = $paginationItemsPerPage;
20✔
826

827
        return $self;
20✔
828
    }
829

830
    public function getPaginationMaximumItemsPerPage(): ?int
831
    {
832
        return $this->paginationMaximumItemsPerPage;
20✔
833
    }
834

835
    public function withPaginationMaximumItemsPerPage(int $paginationMaximumItemsPerPage): self
836
    {
837
        $self = clone $this;
×
838
        $self->paginationMaximumItemsPerPage = $paginationMaximumItemsPerPage;
×
839

840
        return $self;
×
841
    }
842

843
    public function getPaginationPartial(): ?bool
844
    {
845
        return $this->paginationPartial;
20✔
846
    }
847

848
    public function withPaginationPartial(bool $paginationPartial): self
849
    {
850
        $self = clone $this;
×
851
        $self->paginationPartial = $paginationPartial;
×
852

853
        return $self;
×
854
    }
855

856
    public function getPaginationType(): ?string
857
    {
858
        return $this->paginationType;
20✔
859
    }
860

861
    public function withPaginationType(string $paginationType): self
862
    {
863
        $self = clone $this;
×
864
        $self->paginationType = $paginationType;
×
865

866
        return $self;
×
867
    }
868

869
    public function getSecurity(): ?string
870
    {
871
        return $this->security;
20✔
872
    }
873

874
    public function withSecurity(string $security): self
875
    {
876
        $self = clone $this;
×
877
        $self->security = $security;
×
878

879
        return $self;
×
880
    }
881

882
    public function getSecurityMessage(): ?string
883
    {
884
        return $this->securityMessage;
20✔
885
    }
886

887
    public function withSecurityMessage(string $securityMessage): self
888
    {
889
        $self = clone $this;
×
890
        $self->securityMessage = $securityMessage;
×
891

892
        return $self;
×
893
    }
894

895
    public function getSecurityPostDenormalize(): ?string
896
    {
897
        return $this->securityPostDenormalize;
20✔
898
    }
899

900
    public function withSecurityPostDenormalize(string $securityPostDenormalize): self
901
    {
902
        $self = clone $this;
×
903
        $self->securityPostDenormalize = $securityPostDenormalize;
×
904

905
        return $self;
×
906
    }
907

908
    public function getSecurityPostDenormalizeMessage(): ?string
909
    {
910
        return $this->securityPostDenormalizeMessage;
20✔
911
    }
912

913
    public function withSecurityPostDenormalizeMessage(string $securityPostDenormalizeMessage): self
914
    {
915
        $self = clone $this;
×
916
        $self->securityPostDenormalizeMessage = $securityPostDenormalizeMessage;
×
917

918
        return $self;
×
919
    }
920

921
    public function getSecurityPostValidation(): ?string
922
    {
923
        return $this->securityPostValidation;
20✔
924
    }
925

926
    public function withSecurityPostValidation(?string $securityPostValidation = null): self
927
    {
928
        $self = clone $this;
×
929
        $self->securityPostValidation = $securityPostValidation;
×
930

931
        return $self;
×
932
    }
933

934
    public function getSecurityPostValidationMessage(): ?string
935
    {
936
        return $this->securityPostValidationMessage;
20✔
937
    }
938

939
    public function withSecurityPostValidationMessage(?string $securityPostValidationMessage = null): self
940
    {
941
        $self = clone $this;
×
942
        $self->securityPostValidationMessage = $securityPostValidationMessage;
×
943

944
        return $self;
×
945
    }
946

947
    public function getExceptionToStatus(): ?array
948
    {
949
        return $this->exceptionToStatus;
20✔
950
    }
951

952
    public function withExceptionToStatus(array $exceptionToStatus): self
953
    {
954
        $self = clone $this;
×
955
        $self->exceptionToStatus = $exceptionToStatus;
×
956

957
        return $self;
×
958
    }
959

960
    public function getQueryParameterValidationEnabled(): ?bool
961
    {
962
        return $this->queryParameterValidationEnabled;
20✔
963
    }
964

965
    public function withQueryParameterValidationEnabled(bool $queryParameterValidationEnabled): self
966
    {
967
        $self = clone $this;
×
968
        $self->queryParameterValidationEnabled = $queryParameterValidationEnabled;
×
969

970
        return $self;
×
971
    }
972

973
    /**
974
     * @return GraphQlOperation[]
975
     */
976
    public function getGraphQlOperations(): ?array
977
    {
978
        return $this->graphQlOperations;
207✔
979
    }
980

981
    public function withGraphQlOperations(array $graphQlOperations): self
982
    {
983
        $self = clone $this;
20✔
984
        $self->graphQlOperations = $graphQlOperations;
20✔
985

986
        return $self;
20✔
987
    }
988

989
    /**
990
     * @return string|callable|null
991
     */
992
    public function getProcessor()
993
    {
994
        return $this->processor;
20✔
995
    }
996

997
    public function withProcessor($processor): self
998
    {
999
        $self = clone $this;
×
1000
        $self->processor = $processor;
×
1001

1002
        return $self;
×
1003
    }
1004

1005
    /**
1006
     * @return string|callable|null
1007
     */
1008
    public function getProvider()
1009
    {
1010
        return $this->provider;
20✔
1011
    }
1012

1013
    public function withProvider($provider): self
1014
    {
1015
        $self = clone $this;
×
1016
        $self->provider = $provider;
×
1017

1018
        return $self;
×
1019
    }
1020

1021
    public function getExtraProperties(): array
1022
    {
1023
        return $this->extraProperties;
23✔
1024
    }
1025

1026
    public function withExtraProperties(array $extraProperties): self
1027
    {
1028
        $self = clone $this;
20✔
1029
        $self->extraProperties = $extraProperties;
20✔
1030

1031
        return $self;
20✔
1032
    }
1033
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc