Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function call($wrappedClass, $method, array $params = array()) |
||
25 | { |
||
26 | $request = $this->client->post(sprintf('/%s/%s', str_replace('\\', '/', $wrappedClass), $method), $params); |
||
27 | |||
28 | $auth = $this->getAuthConfig($this->auth); |
||
29 | if ($auth) { |
||
30 | $request->setAuth($auth['login'], $auth['pass'], $auth['type']); |
||
31 | } |
||
32 | |||
33 | $response = $request->send(); |
||
34 | |||
35 | return $response->getBody(); |
||
36 | } |
||
37 | |||
61 |