1 | <?php |
||
10 | class Response implements ResponseInterface, ArrayAccess |
||
11 | { |
||
12 | /** |
||
13 | * @var PsrResponseInterface |
||
14 | */ |
||
15 | protected $response; |
||
16 | |||
17 | /** |
||
18 | * @var RequestInterface |
||
19 | */ |
||
20 | protected $request; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $data; |
||
26 | |||
27 | public function __construct(PsrResponseInterface $response, RequestInterface $request) |
||
33 | |||
34 | public function __toString(): string |
||
38 | |||
39 | public function wasSuccessful() : bool |
||
43 | |||
44 | public function getErrors() : array |
||
52 | |||
53 | public function offsetExists($offset) |
||
57 | |||
58 | public function offsetGet($offset) |
||
62 | |||
63 | public function offsetSet($offset, $value) |
||
67 | |||
68 | public function offsetUnset($offset) |
||
72 | } |
||
73 |