1515
1616/**
1717 * @author grayfolk
18- * @version 1.0.2
18+ * @version 1.0.3
1919 */
2020class App
2121{
22- public const VERSION = '1.0.2 ' ;
22+ public const VERSION = '1.0.3 ' ;
2323
2424 /**
2525 * Available API actions.
@@ -33,7 +33,7 @@ class App
3333 ];
3434
3535 /**
36- * @var string
36+ * @var string|null
3737 */
3838 public ?string $ account = null ;
3939
@@ -87,12 +87,13 @@ public function drawHeader(): void
8787 }
8888
8989 /**
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
9394 * @throws Exception
9495 */
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
9697 {
9798 if (!$ this ->accounts ) {
9899 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
132133 }
133134
134135 /**
136+ * @param string $apiKey
137+ * @param bool $drawHeader
135138 * @throws Exception
136- * @param mixed $drawHeader
137139 */
138- public function auth (string $ apiKey , $ drawHeader = true ): void
140+ public function auth (string $ apiKey , bool $ drawHeader = true ): void
139141 {
140142 if (!$ this ->client ) {
141143 $ this ->client = new Client ();
0 commit comments