@@ -116,6 +116,9 @@ |
||
116 | 116 | $this->assertEquals($this->_getErrorMessages('NO_DATA'), $response); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $errorCode |
|
121 | + */ |
|
119 | 122 | private function _getErrorMessages($errorCode) |
120 | 123 | { |
121 | 124 | $errorMessages = Array( |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param $token |
|
46 | + * @param string $token |
|
47 | 47 | * @return null |
48 | 48 | */ |
49 | 49 | public function setToken($token) |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param $baseURI |
|
55 | + * @param string $baseURI |
|
56 | 56 | * @return null |
57 | 57 | */ |
58 | 58 | public function setBaseURI($baseURI) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @param $seconds |
|
65 | + * @param integer $seconds |
|
66 | 66 | * @return null |
67 | 67 | */ |
68 | 68 | public function setTimeOut($seconds) |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
85 | - * @param $path |
|
86 | - * @param $data |
|
85 | + * @param string $path |
|
86 | + * @param string $data |
|
87 | 87 | * @param $options |
88 | 88 | * @return null |
89 | 89 | */ |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param $path |
|
97 | - * @param $data |
|
96 | + * @param string $path |
|
97 | + * @param string $data |
|
98 | 98 | * @param $options |
99 | 99 | * @return null |
100 | 100 | */ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * @param $path |
|
117 | + * @param string $path |
|
118 | 118 | * @param $options |
119 | 119 | * @return null |
120 | 120 | */ |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param $expectedResponse |
|
127 | + * @param string $expectedResponse |
|
128 | 128 | */ |
129 | 129 | public function setResponse($expectedResponse) |
130 | 130 | { |
@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | class Error |
203 | 203 | { |
204 | 204 | /** |
205 | - * @param $error |
|
206 | - * @param $message |
|
205 | + * @param boolean $error |
|
206 | + * @param string $message |
|
207 | 207 | */ |
208 | 208 | function __construct($error, $message) |
209 | 209 | { |
@@ -231,6 +231,9 @@ |
||
231 | 231 | return $ch; |
232 | 232 | } |
233 | 233 | |
234 | + /** |
|
235 | + * @param string $path |
|
236 | + */ |
|
234 | 237 | private function _writeData($path, $data, $method = 'PUT', $options = array(), $contentHeader = array()) |
235 | 238 | { |
236 | 239 | $jsonData = json_encode($data); |