Debian Codegraph @

vendor/zircote/swagger-php/src/Attributes/ExternalDocumentation.php

raw
1 <?php declare(strict_types=1);
2
3 /**
4 * @license Apache 2.0
5 */
6
7 namespace OpenApi\Attributes;
8
9 use OpenApi\Annotations as OA;
10 use OpenApi\Generator;
11
12 #[\Attribute(\Attribute::TARGET_CLASS)]
13 class ExternalDocumentation extends OA\ExternalDocumentation
14 {
15 /**
16 * @param array<string,mixed>|null $x
17 * @param list<Attachable>|null $attachables
18 */
19 public function __construct(
20 ?string $description = Generator::UNDEFINED,
21 ?string $url = null,
22
23 // abstract annotation
24 ?array $x = null,
25 ?array $attachables = null
26 ) {
27 parent::__construct([
28 'description' => $description,
29 'url' => $url ?? Generator::UNDEFINED,
30 'x' => $x ?? Generator::UNDEFINED,
31 'attachables' => $attachables ?? Generator::UNDEFINED,
32 ]);
33 }
34 }