| 1 | <?php |
||
| 8 | class Response implements ResponseInterface, \ArrayAccess |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var PsrResponseInterface |
||
| 12 | */ |
||
| 13 | protected $response; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $data; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param PsrResponseInterface $response |
||
| 22 | * @throws InvalidJsonException |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(PsrResponseInterface $response) |
|
| 29 | |||
| 30 | public function __toString() |
||
| 34 | |||
| 35 | public function wasSuccessful() : bool |
||
| 39 | |||
| 40 | public function offsetExists($offset) |
||
| 44 | |||
| 45 | 1 | public function offsetGet($offset) |
|
| 49 | |||
| 50 | public function offsetSet($offset, $value) |
||
| 54 | |||
| 55 | public function offsetUnset($offset) |
||
| 59 | } |
||
| 60 |