@@ -88,7 +88,7 @@ class Configuration
88
88
*
89
89
* @var string
90
90
*/
91
- protected $ userAgent = 'pandadoc_php_client/5.5.0 ' ;
91
+ protected $ userAgent = 'pandadoc_php_client/5.5.1 ' ;
92
92
93
93
/**
94
94
* Debug switch (default set to false)
@@ -127,6 +127,7 @@ public function __construct()
127
127
*
128
128
* @return $this
129
129
*/
130
+ #[\ReturnTypeWillChange]
130
131
public function setApiKey ($ apiKeyIdentifier , $ key )
131
132
{
132
133
$ this ->apiKeys [$ apiKeyIdentifier ] = $ key ;
@@ -140,6 +141,7 @@ public function setApiKey($apiKeyIdentifier, $key)
140
141
*
141
142
* @return null|string API key or token
142
143
*/
144
+ #[\ReturnTypeWillChange]
143
145
public function getApiKey ($ apiKeyIdentifier )
144
146
{
145
147
return isset ($ this ->apiKeys [$ apiKeyIdentifier ]) ? $ this ->apiKeys [$ apiKeyIdentifier ] : null ;
@@ -153,6 +155,7 @@ public function getApiKey($apiKeyIdentifier)
153
155
*
154
156
* @return $this
155
157
*/
158
+ #[\ReturnTypeWillChange]
156
159
public function setApiKeyPrefix ($ apiKeyIdentifier , $ prefix )
157
160
{
158
161
$ this ->apiKeyPrefixes [$ apiKeyIdentifier ] = $ prefix ;
@@ -166,6 +169,7 @@ public function setApiKeyPrefix($apiKeyIdentifier, $prefix)
166
169
*
167
170
* @return null|string
168
171
*/
172
+ #[\ReturnTypeWillChange]
169
173
public function getApiKeyPrefix ($ apiKeyIdentifier )
170
174
{
171
175
return isset ($ this ->apiKeyPrefixes [$ apiKeyIdentifier ]) ? $ this ->apiKeyPrefixes [$ apiKeyIdentifier ] : null ;
@@ -178,6 +182,7 @@ public function getApiKeyPrefix($apiKeyIdentifier)
178
182
*
179
183
* @return $this
180
184
*/
185
+ #[\ReturnTypeWillChange]
181
186
public function setAccessToken ($ accessToken )
182
187
{
183
188
$ this ->accessToken = $ accessToken ;
@@ -189,6 +194,7 @@ public function setAccessToken($accessToken)
189
194
*
190
195
* @return string Access token for OAuth
191
196
*/
197
+ #[\ReturnTypeWillChange]
192
198
public function getAccessToken ()
193
199
{
194
200
return $ this ->accessToken ;
@@ -201,6 +207,7 @@ public function getAccessToken()
201
207
*
202
208
* @return $this
203
209
*/
210
+ #[\ReturnTypeWillChange]
204
211
public function setUsername ($ username )
205
212
{
206
213
$ this ->username = $ username ;
@@ -212,6 +219,7 @@ public function setUsername($username)
212
219
*
213
220
* @return string Username for HTTP basic authentication
214
221
*/
222
+ #[\ReturnTypeWillChange]
215
223
public function getUsername ()
216
224
{
217
225
return $ this ->username ;
@@ -224,6 +232,7 @@ public function getUsername()
224
232
*
225
233
* @return $this
226
234
*/
235
+ #[\ReturnTypeWillChange]
227
236
public function setPassword ($ password )
228
237
{
229
238
$ this ->password = $ password ;
@@ -235,6 +244,7 @@ public function setPassword($password)
235
244
*
236
245
* @return string Password for HTTP basic authentication
237
246
*/
247
+ #[\ReturnTypeWillChange]
238
248
public function getPassword ()
239
249
{
240
250
return $ this ->password ;
@@ -247,6 +257,7 @@ public function getPassword()
247
257
*
248
258
* @return $this
249
259
*/
260
+ #[\ReturnTypeWillChange]
250
261
public function setHost ($ host )
251
262
{
252
263
$ this ->host = $ host ;
@@ -258,6 +269,7 @@ public function setHost($host)
258
269
*
259
270
* @return string Host
260
271
*/
272
+ #[\ReturnTypeWillChange]
261
273
public function getHost ()
262
274
{
263
275
return $ this ->host ;
@@ -271,6 +283,7 @@ public function getHost()
271
283
* @throws \InvalidArgumentException
272
284
* @return $this
273
285
*/
286
+ #[\ReturnTypeWillChange]
274
287
public function setUserAgent ($ userAgent )
275
288
{
276
289
if (!is_string ($ userAgent )) {
@@ -286,6 +299,7 @@ public function setUserAgent($userAgent)
286
299
*
287
300
* @return string user agent
288
301
*/
302
+ #[\ReturnTypeWillChange]
289
303
public function getUserAgent ()
290
304
{
291
305
return $ this ->userAgent ;
@@ -298,6 +312,7 @@ public function getUserAgent()
298
312
*
299
313
* @return $this
300
314
*/
315
+ #[\ReturnTypeWillChange]
301
316
public function setDebug ($ debug )
302
317
{
303
318
$ this ->debug = $ debug ;
@@ -309,6 +324,7 @@ public function setDebug($debug)
309
324
*
310
325
* @return bool
311
326
*/
327
+ #[\ReturnTypeWillChange]
312
328
public function getDebug ()
313
329
{
314
330
return $ this ->debug ;
@@ -321,6 +337,7 @@ public function getDebug()
321
337
*
322
338
* @return $this
323
339
*/
340
+ #[\ReturnTypeWillChange]
324
341
public function setDebugFile ($ debugFile )
325
342
{
326
343
$ this ->debugFile = $ debugFile ;
@@ -332,6 +349,7 @@ public function setDebugFile($debugFile)
332
349
*
333
350
* @return string
334
351
*/
352
+ #[\ReturnTypeWillChange]
335
353
public function getDebugFile ()
336
354
{
337
355
return $ this ->debugFile ;
@@ -344,6 +362,7 @@ public function getDebugFile()
344
362
*
345
363
* @return $this
346
364
*/
365
+ #[\ReturnTypeWillChange]
347
366
public function setTempFolderPath ($ tempFolderPath )
348
367
{
349
368
$ this ->tempFolderPath = $ tempFolderPath ;
@@ -355,6 +374,7 @@ public function setTempFolderPath($tempFolderPath)
355
374
*
356
375
* @return string Temp folder path
357
376
*/
377
+ #[\ReturnTypeWillChange]
358
378
public function getTempFolderPath ()
359
379
{
360
380
return $ this ->tempFolderPath ;
@@ -365,6 +385,7 @@ public function getTempFolderPath()
365
385
*
366
386
* @return Configuration
367
387
*/
388
+ #[\ReturnTypeWillChange]
368
389
public static function getDefaultConfiguration ()
369
390
{
370
391
if (self ::$ defaultConfiguration === null ) {
@@ -381,6 +402,7 @@ public static function getDefaultConfiguration()
381
402
*
382
403
* @return void
383
404
*/
405
+ #[\ReturnTypeWillChange]
384
406
public static function setDefaultConfiguration (Configuration $ config )
385
407
{
386
408
self ::$ defaultConfiguration = $ config ;
@@ -391,13 +413,14 @@ public static function setDefaultConfiguration(Configuration $config)
391
413
*
392
414
* @return string The report for debugging
393
415
*/
416
+ #[\ReturnTypeWillChange]
394
417
public static function toDebugReport ()
395
418
{
396
419
$ report = 'PHP SDK (PandaDoc\Client) Debug Report: ' . PHP_EOL ;
397
420
$ report .= ' OS: ' . php_uname () . PHP_EOL ;
398
421
$ report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL ;
399
422
$ report .= ' The version of the OpenAPI document: 5.5.0 ' . PHP_EOL ;
400
- $ report .= ' SDK Package Version: 5.5.0 ' . PHP_EOL ;
423
+ $ report .= ' SDK Package Version: 5.5.1 ' . PHP_EOL ;
401
424
$ report .= ' Temp Folder Path: ' . self ::getDefaultConfiguration ()->getTempFolderPath () . PHP_EOL ;
402
425
403
426
return $ report ;
@@ -410,6 +433,7 @@ public static function toDebugReport()
410
433
*
411
434
* @return null|string API key with the prefix
412
435
*/
436
+ #[\ReturnTypeWillChange]
413
437
public function getApiKeyWithPrefix ($ apiKeyIdentifier )
414
438
{
415
439
$ prefix = $ this ->getApiKeyPrefix ($ apiKeyIdentifier );
@@ -433,6 +457,7 @@ public function getApiKeyWithPrefix($apiKeyIdentifier)
433
457
*
434
458
* @return array an array of host settings
435
459
*/
460
+ #[\ReturnTypeWillChange]
436
461
public function getHostSettings ()
437
462
{
438
463
return [
@@ -450,6 +475,7 @@ public function getHostSettings()
450
475
* @param array|null $variables hash of variable and the corresponding value (optional)
451
476
* @return string URL based on host settings
452
477
*/
478
+ #[\ReturnTypeWillChange]
453
479
public function getHostFromSettings ($ index , $ variables = null )
454
480
{
455
481
if (null === $ variables ) {
0 commit comments