@@ -26,8 +26,14 @@ final class Options
26
26
private $ oAuthRefreshUrl ;
27
27
private $ oAuthScopes ;
28
28
private $ apiKeys ;
29
-
30
- public function __construct (string $ title , string $ description = '' , string $ version = '' , bool $ oAuthEnabled = false , string $ oAuthType = '' , string $ oAuthFlow = '' , string $ oAuthTokenUrl = '' , string $ oAuthAuthorizationUrl = '' , string $ oAuthRefreshUrl = '' , array $ oAuthScopes = [], array $ apiKeys = [])
29
+ private $ contactName ;
30
+ private $ contactUrl ;
31
+ private $ contactEmail ;
32
+ private $ termsOfService ;
33
+ private $ licenseName ;
34
+ private $ licenseUrl ;
35
+
36
+ public function __construct (string $ title , string $ description = '' , string $ version = '' , bool $ oAuthEnabled = false , string $ oAuthType = '' , string $ oAuthFlow = '' , string $ oAuthTokenUrl = '' , string $ oAuthAuthorizationUrl = '' , string $ oAuthRefreshUrl = '' , array $ oAuthScopes = [], array $ apiKeys = [], string $ contactName = null , string $ contactUrl = null , string $ contactEmail = null , string $ termsOfService = null , string $ licenseName = null , string $ licenseUrl = null )
31
37
{
32
38
$ this ->title = $ title ;
33
39
$ this ->description = $ description ;
@@ -40,6 +46,12 @@ public function __construct(string $title, string $description = '', string $ver
40
46
$ this ->oAuthRefreshUrl = $ oAuthRefreshUrl ;
41
47
$ this ->oAuthScopes = $ oAuthScopes ;
42
48
$ this ->apiKeys = $ apiKeys ;
49
+ $ this ->contactName = $ contactName ;
50
+ $ this ->contactUrl = $ contactUrl ;
51
+ $ this ->contactEmail = $ contactEmail ;
52
+ $ this ->termsOfService = $ termsOfService ;
53
+ $ this ->licenseName = $ licenseName ;
54
+ $ this ->licenseUrl = $ licenseUrl ;
43
55
}
44
56
45
57
public function getTitle (): string
@@ -96,4 +108,34 @@ public function getApiKeys(): array
96
108
{
97
109
return $ this ->apiKeys ;
98
110
}
111
+
112
+ public function getContactName (): ?string
113
+ {
114
+ return $ this ->contactName ;
115
+ }
116
+
117
+ public function getContactUrl (): ?string
118
+ {
119
+ return $ this ->contactUrl ;
120
+ }
121
+
122
+ public function getContactEmail (): ?string
123
+ {
124
+ return $ this ->contactEmail ;
125
+ }
126
+
127
+ public function getTermsOfService (): ?string
128
+ {
129
+ return $ this ->termsOfService ;
130
+ }
131
+
132
+ public function getLicenseName (): ?string
133
+ {
134
+ return $ this ->licenseName ;
135
+ }
136
+
137
+ public function getLicenseUrl (): ?string
138
+ {
139
+ return $ this ->licenseUrl ;
140
+ }
99
141
}
0 commit comments