| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class RuleError implements Error |
||
| 6 | { |
||
| 7 | private $code; |
||
| 8 | private $message; |
||
| 9 | |||
| 10 | public function __construct(int $code, string $message) |
||
| 11 | { |
||
| 12 | $this->code = $code; |
||
| 13 | $this->message = $message; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getCode(): int |
||
| 17 | { |
||
| 18 | return $this->code; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getMessage(): string |
||
| 24 | } |
||
| 25 | } |