Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
35 | 2 | public function handle(array $args = []) |
|
36 | { |
||
37 | 2 | $params = toQueryParams($args); |
|
38 | |||
39 | /** |
||
40 | * @var ResponseInterface $response |
||
41 | */ |
||
42 | 2 | $response = $this->adapter->getHttpClient() |
|
43 | 2 | ->get($this->baseUrl . self::FETCH_ALL_PLANS_RELATIVE_LINK . $params); |
|
44 | |||
45 | 2 | $this->verifyResponse($response); |
|
46 | |||
47 | 1 | return json_decode($response->getBody(), true)['data']; |
|
48 | } |
||
49 | } |
||
50 |