1 | <?php |
||
10 | abstract class SecurityScheme extends ValueObject implements SecuritySchemeAggregate |
||
11 | { |
||
12 | use Properties\OptionalDescription; |
||
13 | use Properties\OptionalExtensions; |
||
14 | |||
15 | public const TYPE_API_KEY = 'apiKey'; |
||
16 | |||
17 | public const TYPE_HTTP = 'http'; |
||
18 | |||
19 | public const TYPE_OAUTH2 = 'oauth2'; |
||
20 | |||
21 | public const TYPE_OPEN_ID_CONNECT = 'openIdConnect'; |
||
22 | |||
23 | private $type; |
||
24 | |||
25 | 10 | public function __construct( |
|
34 | |||
35 | 9 | public function getType(): string |
|
39 | |||
40 | 9 | final public function jsonSerialize(): ?array |
|
44 | |||
45 | 9 | protected function normalizeOptionalProperties(): array |
|
51 | |||
52 | 7 | protected function normalizeOptionalSchemeProperties(): array |
|
56 | |||
57 | 9 | protected function normalizeRequiredProperties(): array |
|
63 | |||
64 | abstract protected function normalizeRequiredSchemeProperties(): array; |
||
65 | } |
||
66 |