@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Constructor |
22 | - * @param $secretKey |
|
23 | - * @param $accessKey |
|
22 | + * @param string $secretKey |
|
23 | + * @param string $accessKey |
|
24 | 24 | */ |
25 | 25 | public function __construct($secretKey, $accessKey) |
26 | 26 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Get authorization headers |
95 | 95 | * @param string $serviceType |
96 | - * @return array |
|
96 | + * @return string[] |
|
97 | 97 | */ |
98 | 98 | public function getHeader($serviceType) |
99 | 99 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | /** |
137 | 137 | * Get string to sign |
138 | - * @param $canonical |
|
138 | + * @param string $canonical |
|
139 | 139 | * @return string |
140 | 140 | */ |
141 | 141 | protected function getStringToSign($canonical) |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | /** |
168 | 168 | * Create signature |
169 | - * @param $requestType |
|
169 | + * @param string $requestType |
|
170 | 170 | * @return string |
171 | 171 | */ |
172 | 172 | protected function createSignature($requestType) |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Get service headers |
48 | - * @return array |
|
48 | + * @return string[] |
|
49 | 49 | */ |
50 | 50 | public function getHeaders() |
51 | 51 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | protected function createPayload() |
72 | 72 | { |
73 | - $payloadArray = (object)array(); |
|
73 | + $payloadArray = (object) array(); |
|
74 | 74 | $payloadArray->Input['Data'] = $this->queryText; |
75 | 75 | $payloadArray->Input['Type'] = 'text/plain'; |
76 | 76 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Get error message |
76 | - * @return mixed |
|
76 | + * @return string |
|
77 | 77 | */ |
78 | 78 | public function getError() |
79 | 79 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $text |
|
66 | + * @param string $text |
|
67 | 67 | * @return Payload |
68 | 68 | */ |
69 | 69 | public function getPayload($text) |