| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Error |
||
| 11 | { |
||
| 12 | private $message; |
||
| 13 | |||
| 14 | private $context; |
||
| 15 | |||
| 16 | 2 | public function __construct(string $message, array $context = []) |
|
| 17 | { |
||
| 18 | 2 | $this->message = $message; |
|
| 19 | 2 | $this->context = $context; |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function __toString(): string |
|
| 25 | } |
||
| 26 | |||
| 27 | 3 | public function getMessage(): string |
|
| 28 | { |
||
| 29 | 3 | return $this->message; |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getContext(): array |
|
| 35 | } |
||
| 36 | } |
||
| 37 |