Debian Codegraph @

vendor/zircote/swagger-php/src/Attributes/Flow.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 Flow extends OA\Flow
14 {
15 /**
16 * @param 'implicit'|'password'|'authorizationCode'|'clientCredentials'|null $flow
17 * @param array<string,mixed>|null $x
18 * @param list<Attachable>|null $attachables
19 */
20 public function __construct(
21 ?string $authorizationUrl = null,
22 ?string $tokenUrl = null,
23 ?string $refreshUrl = null,
24 ?string $flow = null,
25 ?array $scopes = null,
26
27 // abstract annotation
28 ?array $x = null,
29 ?array $attachables = null
30 ) {
31 parent::__construct([
32 'authorizationUrl' => $authorizationUrl ?? Generator::UNDEFINED,
33 'tokenUrl' => $tokenUrl ?? Generator::UNDEFINED,
34 'refreshUrl' => $refreshUrl ?? Generator::UNDEFINED,
35 'flow' => $flow ?? Generator::UNDEFINED,
36 'scopes' => $scopes ?? Generator::UNDEFINED,
37 'x' => $x ?? Generator::UNDEFINED,
38 'attachables' => $attachables ?? Generator::UNDEFINED,
39 ]);
40 }
41 }