@@ -29,6 +29,10 @@ discard block |
||
29 | 29 | 'expand' |
30 | 30 | ); |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $login |
|
34 | + * @param string $apiKey |
|
35 | + */ |
|
32 | 36 | public function __construct($login, $apiKey) |
33 | 37 | { |
34 | 38 | $this->login = $login; |
@@ -116,6 +120,10 @@ discard block |
||
116 | 120 | return $this->process('stats', $postFields); |
117 | 121 | } |
118 | 122 | |
123 | + /** |
|
124 | + * @param string $action |
|
125 | + * @param string $postFields |
|
126 | + */ |
|
119 | 127 | protected function process($action, $postFields) |
120 | 128 | { |
121 | 129 | $ch = curl_init($this->api . $action); |
@@ -136,6 +144,9 @@ discard block |
||
136 | 144 | return $response; |
137 | 145 | } |
138 | 146 | |
147 | + /** |
|
148 | + * @param string $format |
|
149 | + */ |
|
139 | 150 | public function setReturnFormat($format) |
140 | 151 | { |
141 | 152 | // needed for restoration |