1 | <?php |
||
9 | class Response implements ResponseInterface, \ArrayAccess |
||
10 | { |
||
11 | /** |
||
12 | * @var PsrResponseInterface |
||
13 | */ |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * @var RequestInterface |
||
18 | */ |
||
19 | protected $request; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $data; |
||
25 | |||
26 | /** |
||
27 | * @param PsrResponseInterface $response |
||
28 | * @param RequestInterface $request |
||
29 | * @throws InvalidJsonException |
||
30 | */ |
||
31 | 1 | public function __construct(PsrResponseInterface $response, RequestInterface $request) |
|
37 | |||
38 | public function __toString() |
||
42 | |||
43 | public function wasSuccessful() : bool |
||
47 | |||
48 | public function offsetExists($offset) |
||
52 | |||
53 | 1 | public function offsetGet($offset) |
|
57 | |||
58 | public function offsetSet($offset, $value) |
||
62 | |||
63 | public function offsetUnset($offset) |
||
67 | } |
||
68 |