@@ -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) |
@@ -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 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Set post data |
84 | - * @param array $postData |
|
84 | + * @param string $postData |
|
85 | 85 | * @return $this |
86 | 86 | */ |
87 | 87 | public function setPostData($postData) |
@@ -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) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Get service headers |
36 | - * @return array |
|
36 | + * @return string[] |
|
37 | 37 | */ |
38 | 38 | public function getHeaders() |
39 | 39 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Set payload |
76 | - * @param $payload |
|
76 | + * @param string $payload |
|
77 | 77 | * @return $this |
78 | 78 | */ |
79 | 79 | public function setPayload($payload) |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Get post data for service |
87 | - * @return array |
|
87 | + * @return string |
|
88 | 88 | */ |
89 | 89 | public function getPayload() |
90 | 90 | { |
@@ -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 |