| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | * @param string $class Entity to bind the response to |
||
| 52 | * @param bool $isArray If the response is a collection |
||
| 53 | * |
||
| 54 | * @return object Entity instance |
||
| 55 | **/ |
||
| 56 | protected function handleResponse($response, $class, $isArray = false) |
||
| 57 | { |
||
| 58 | $object = json_decode($response, true); |
||
| 59 | if ($isArray) { |
||
| 68 |