Skip to content

Commit 955a133

Browse files
committed
chore: SDK update
1 parent dfafcbd commit 955a133

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

src/Configuration.php

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ class Configuration
1919
public const BOOLEAN_FORMAT_INT = 'int';
2020
public const BOOLEAN_FORMAT_STRING = 'string';
2121

22-
/**
23-
* @var Configuration|null
24-
*/
2522
private static ?Configuration $defaultConfiguration = null;
2623

2724
/**
2825
* Associate array to store API key(s)
2926
*
30-
* @var string[]
27+
* @var array<string>
3128
*/
3229
protected array $apiKeys = [];
3330

@@ -40,70 +37,49 @@ class Configuration
4037

4138
/**
4239
* Access token for OAuth/Bearer authentication
43-
*
44-
* @var string
4540
*/
4641
protected string $accessToken = '';
4742

4843
/**
4944
* Boolean format for query string
50-
*
51-
* @var string
5245
*/
5346
protected string $booleanFormatForQueryString = self::BOOLEAN_FORMAT_INT;
5447

5548
/**
5649
* Username for HTTP basic authentication
57-
*
58-
* @var string
5950
*/
6051
protected string $username = '';
6152

6253
/**
6354
* Password for HTTP basic authentication
64-
*
65-
* @var string
6655
*/
6756
protected string $password = '';
6857

6958
/**
7059
* The host
71-
*
72-
* @var string
7360
*/
7461
protected string $host = 'https://developers.hostinger.com';
7562

7663
/**
77-
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
78-
*
79-
* @var string
64+
* User agent of the HTTP request
8065
*/
8166
protected string $userAgent = 'Hostinger-API-PHP-SDK/1.0.0';
8267

8368
/**
8469
* Debug switch (default set to false)
85-
*
86-
* @var bool
8770
*/
8871
protected bool $debug = false;
8972

9073
/**
9174
* Debug file location (log to STDOUT by default)
92-
*
93-
* @var string
9475
*/
9576
protected string $debugFile = 'php://output';
9677

9778
/**
9879
* Debug file location (log to STDOUT by default)
99-
*
100-
* @var string
10180
*/
10281
protected string $tempFolderPath;
10382

104-
/**
105-
* Constructor
106-
*/
10783
public function __construct()
10884
{
10985
$this->tempFolderPath = sys_get_temp_dir();

0 commit comments

Comments
 (0)