-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOptions.php
106 lines (85 loc) · 2.65 KB
/
Options.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\OpenApi;
final class Options
{
public function __construct(private readonly string $title, private readonly string $description = '', private readonly string $version = '', private readonly bool $oAuthEnabled = false, private readonly ?string $oAuthType = null, private readonly ?string $oAuthFlow = null, private readonly ?string $oAuthTokenUrl = null, private readonly ?string $oAuthAuthorizationUrl = null, private readonly ?string $oAuthRefreshUrl = null, private readonly array $oAuthScopes = [], private readonly array $apiKeys = [], private readonly ?string $contactName = null, private readonly ?string $contactUrl = null, private readonly ?string $contactEmail = null, private readonly ?string $termsOfService = null, private readonly ?string $licenseName = null, private readonly ?string $licenseUrl = null)
{
}
public function getTitle(): string
{
return $this->title;
}
public function getDescription(): string
{
return $this->description;
}
public function getVersion(): string
{
return $this->version;
}
public function getOAuthEnabled(): bool
{
return $this->oAuthEnabled;
}
public function getOAuthType(): ?string
{
return $this->oAuthType;
}
public function getOAuthFlow(): ?string
{
return $this->oAuthFlow;
}
public function getOAuthTokenUrl(): ?string
{
return $this->oAuthTokenUrl;
}
public function getOAuthAuthorizationUrl(): ?string
{
return $this->oAuthAuthorizationUrl;
}
public function getOAuthRefreshUrl(): ?string
{
return $this->oAuthRefreshUrl;
}
public function getOAuthScopes(): array
{
return $this->oAuthScopes;
}
public function getApiKeys(): array
{
return $this->apiKeys;
}
public function getContactName(): ?string
{
return $this->contactName;
}
public function getContactUrl(): ?string
{
return $this->contactUrl;
}
public function getContactEmail(): ?string
{
return $this->contactEmail;
}
public function getTermsOfService(): ?string
{
return $this->termsOfService;
}
public function getLicenseName(): ?string
{
return $this->licenseName;
}
public function getLicenseUrl(): ?string
{
return $this->licenseUrl;
}
}