Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function get($selected = []) { |
||
32 | try { |
||
33 | $url = $this->url . $this->api . $this->v2 . $this->client . '/' . $this->id ?? $this->id; |
||
34 | $response = $this->request($url); |
||
35 | |||
36 | if ($selected) $response = $this->select($selected, $response); |
||
37 | |||
38 | return $response; |
||
39 | } catch (Exception $e) { |
||
40 | return $e; |
||
41 | } |
||
90 |