@@ -21,73 +21,61 @@ abstract class AbstractConfiguration implements ConfigurationInterface
21
21
22
22
/**
23
23
* Curl options CURLOPT_SSL_VERIFYHOST.
24
- *
25
24
*/
26
25
protected bool $ curlOptSslVerifyHost ;
27
26
28
27
/**
29
28
* Curl options CURLOPT_SSL_VERIFYPEER.
30
- *
31
29
*/
32
30
protected bool $ curlOptSslVerifyPeer ;
33
31
34
32
/**
35
33
* Curl option CURLOPT_USERAGENT.
36
- *
37
34
*/
38
35
protected string $ curlOptUserAgent ;
39
36
40
37
/**
41
38
* Curl options CURLOPT_VERBOSE.
42
- *
43
39
*/
44
40
protected bool $ curlOptVerbose ;
45
41
46
42
/**
47
43
* HTTP header 'Authorization: Bearer {token}' for OAuth.
48
- *
49
44
*/
50
45
protected ?string $ oauthAccessToken ;
51
46
52
47
/**
53
48
* enable cookie authorization.
54
- *
55
49
*/
56
50
protected bool $ cookieAuthEnabled ;
57
51
58
52
/**
59
53
* HTTP cookie file name.
60
- *
61
54
*/
62
55
protected ?string $ cookieFile ;
63
56
64
57
/**
65
58
* Proxy server.
66
- *
67
59
*/
68
60
protected ?string $ proxyServer ;
69
61
70
62
/**
71
63
* Proxy port.
72
- *
73
64
*/
74
65
protected ?string $ proxyPort ;
75
66
76
67
/**
77
68
* Proxy user.
78
- *
79
69
*/
80
70
protected ?string $ proxyUser ;
81
71
82
72
/**
83
73
* Proxy password.
84
- *
85
74
*/
86
75
protected ?string $ proxyPassword ;
87
76
88
77
/**
89
78
* Use Jira Cloud REST API v3.
90
- *
91
79
*/
92
80
protected bool $ useV3RestApi ;
93
81
@@ -105,142 +93,140 @@ abstract class AbstractConfiguration implements ConfigurationInterface
105
93
106
94
protected ?string $ personalAccessToken ;
107
95
108
- public function getJiraHost () : string
96
+ public function getJiraHost (): string
109
97
{
110
98
return $ this ->jiraHost ;
111
99
}
112
100
113
- public function getJiraUser () : string
101
+ public function getJiraUser (): string
114
102
{
115
103
return $ this ->jiraUser ;
116
104
}
117
105
118
- public function getJiraPassword () : string
106
+ public function getJiraPassword (): string
119
107
{
120
108
return $ this ->jiraPassword ;
121
109
}
122
110
123
- public function getJiraLogEnabled () : bool
111
+ public function getJiraLogEnabled (): bool
124
112
{
125
113
return $ this ->jiraLogEnabled ;
126
114
}
127
115
128
- public function getJiraLogFile () : string
116
+ public function getJiraLogFile (): string
129
117
{
130
118
return $ this ->jiraLogFile ;
131
119
}
132
120
133
- public function getJiraLogLevel () : string
121
+ public function getJiraLogLevel (): string
134
122
{
135
123
return $ this ->jiraLogLevel ;
136
124
}
137
125
138
- public function isCurlOptSslVerifyHost () : bool
126
+ public function isCurlOptSslVerifyHost (): bool
139
127
{
140
128
return $ this ->curlOptSslVerifyHost ;
141
129
}
142
130
143
- public function isCurlOptSslVerifyPeer () : bool
131
+ public function isCurlOptSslVerifyPeer (): bool
144
132
{
145
133
return $ this ->curlOptSslVerifyPeer ;
146
134
}
147
135
148
- public function isCurlOptSslCert () : ?string
136
+ public function isCurlOptSslCert (): ?string
149
137
{
150
138
return $ this ->curlOptSslCert ;
151
139
}
152
140
153
- public function isCurlOptSslCertPassword () : ?string
141
+ public function isCurlOptSslCertPassword (): ?string
154
142
{
155
143
return $ this ->curlOptSslCertPassword ;
156
144
}
157
145
158
- public function isCurlOptSslKey () : ?string
146
+ public function isCurlOptSslKey (): ?string
159
147
{
160
148
return $ this ->curlOptSslKey ;
161
149
}
162
150
163
- public function isCurlOptSslKeyPassword () : ?string
151
+ public function isCurlOptSslKeyPassword (): ?string
164
152
{
165
153
return $ this ->curlOptSslKeyPassword ;
166
154
}
167
155
168
- public function isCurlOptVerbose () : bool
156
+ public function isCurlOptVerbose (): bool
169
157
{
170
158
return $ this ->curlOptVerbose ;
171
159
}
172
160
173
161
/**
174
162
* Get curl option CURLOPT_USERAGENT.
175
- *
176
163
*/
177
- public function getCurlOptUserAgent () : ?string
164
+ public function getCurlOptUserAgent (): ?string
178
165
{
179
166
return $ this ->curlOptUserAgent ;
180
167
}
181
168
182
- public function getOAuthAccessToken () : string
169
+ public function getOAuthAccessToken (): string
183
170
{
184
171
return $ this ->oauthAccessToken ;
185
172
}
186
173
187
- public function isCookieAuthorizationEnabled () : bool
174
+ public function isCookieAuthorizationEnabled (): bool
188
175
{
189
176
return $ this ->cookieAuthEnabled ;
190
177
}
191
178
192
179
/**
193
180
* get default User-Agent String.
194
- *
195
181
*/
196
- public function getDefaultUserAgentString () : string
182
+ public function getDefaultUserAgentString (): string
197
183
{
198
184
$ curlVersion = curl_version ();
199
185
200
186
return sprintf ('curl/%s (%s) ' , $ curlVersion ['version ' ], $ curlVersion ['host ' ]);
201
187
}
202
188
203
- public function getCookieFile () : ?string
189
+ public function getCookieFile (): ?string
204
190
{
205
191
return $ this ->cookieFile ;
206
192
}
207
193
208
- public function getProxyServer () : ?string
194
+ public function getProxyServer (): ?string
209
195
{
210
196
return $ this ->proxyServer ;
211
197
}
212
198
213
- public function getProxyPort () : ?string
199
+ public function getProxyPort (): ?string
214
200
{
215
201
return $ this ->proxyPort ;
216
202
}
217
203
218
- public function getProxyUser () : ?string
204
+ public function getProxyUser (): ?string
219
205
{
220
206
return $ this ->proxyUser ;
221
207
}
222
208
223
- public function getProxyPassword () : ?string
209
+ public function getProxyPassword (): ?string
224
210
{
225
211
return $ this ->proxyPassword ;
226
212
}
227
213
228
- public function getUseV3RestApi () : bool
214
+ public function getUseV3RestApi (): bool
229
215
{
230
216
return $ this ->useV3RestApi ;
231
217
}
232
218
233
- public function getTimeout () : int
219
+ public function getTimeout (): int
234
220
{
235
221
return $ this ->timeout ;
236
222
}
237
223
238
- public function isTokenBasedAuth () : bool
224
+ public function isTokenBasedAuth (): bool
239
225
{
240
226
return $ this ->useTokenBasedAuth ;
241
227
}
242
228
243
- public function getPersonalAccessToken () : string
229
+ public function getPersonalAccessToken (): string
244
230
{
245
231
return $ this ->personalAccessToken ;
246
232
}
0 commit comments