| 1 | <?php |
||
| 7 | class Error implements ArrayAccess |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $error; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $message; |
||
| 14 | |||
| 15 | /** @var array */ |
||
| 16 | private $context; |
||
| 17 | |||
| 18 | public function __construct(string $error, array $context, string $message) |
||
| 24 | |||
| 25 | public function __toString() |
||
| 29 | |||
| 30 | public function getError(): string |
||
| 34 | |||
| 35 | public function getContext(): array |
||
| 39 | |||
| 40 | public function getMessage(): string |
||
| 44 | |||
| 45 | public function offsetExists($offset) |
||
| 49 | |||
| 50 | public function offsetGet($offset) |
||
| 54 | |||
| 55 | public function offsetSet($offset, $value) |
||
| 59 | |||
| 60 | public function offsetUnset($offset) |
||
| 64 | } |
||
| 65 |