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