| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class Error |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | private $code; |
||
| 20 | |||
| 21 | /** @var string|null */ |
||
| 22 | private $message; |
||
| 23 | |||
| 24 | public function __construct(string $code, ?string $message = null) |
||
| 25 | { |
||
| 26 | $this->code = $code; |
||
| 27 | $this->message = $message; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getCode(): string |
||
| 31 | { |
||
| 32 | return $this->code; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getMessage(): string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |