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 getErrors() : array |
||
56 | |||
57 | public function offsetExists($offset) |
||
61 | |||
62 | 1 | public function offsetGet($offset) |
|
66 | |||
67 | public function offsetSet($offset, $value) |
||
71 | |||
72 | public function offsetUnset($offset) |
||
76 | } |
||
77 |