15
15
16
16
/**
17
17
* @author grayfolk
18
- * @version 1.0.2
18
+ * @version 1.0.3
19
19
*/
20
20
class App
21
21
{
22
- public const VERSION = '1.0.2 ' ;
22
+ public const VERSION = '1.0.3 ' ;
23
23
24
24
/**
25
25
* Available API actions.
@@ -33,7 +33,7 @@ class App
33
33
];
34
34
35
35
/**
36
- * @var string
36
+ * @var string|null
37
37
*/
38
38
public ?string $ account = null ;
39
39
@@ -87,12 +87,13 @@ public function drawHeader(): void
87
87
}
88
88
89
89
/**
90
- * @param mixed $excludes
91
- * @param mixed $message
92
- * @param mixed $forceAuth
90
+ * @param string $message
91
+ * @param array $excludes
92
+ * @param bool $forceAuth
93
+ * @return string
93
94
* @throws Exception
94
95
*/
95
- public function selectAccount ($ message = 'Select DigitalOcean account: ' , $ excludes = [], $ forceAuth = true ): string
96
+ public function selectAccount (string $ message = 'Select DigitalOcean account: ' , array $ excludes = [], bool $ forceAuth = true ): string
96
97
{
97
98
if (!$ this ->accounts ) {
98
99
if (!file_exists ('accounts.json ' ) || !is_file ('accounts.json ' ) || !is_readable ('accounts.json ' )) {
@@ -132,10 +133,11 @@ public function selectAccount($message = 'Select DigitalOcean account:', $exclud
132
133
}
133
134
134
135
/**
136
+ * @param string $apiKey
137
+ * @param bool $drawHeader
135
138
* @throws Exception
136
- * @param mixed $drawHeader
137
139
*/
138
- public function auth (string $ apiKey , $ drawHeader = true ): void
140
+ public function auth (string $ apiKey , bool $ drawHeader = true ): void
139
141
{
140
142
if (!$ this ->client ) {
141
143
$ this ->client = new Client ();
0 commit comments