| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class RuleError implements Error |
||
| 12 | { |
||
| 13 | private $code; |
||
| 14 | private $message; |
||
| 15 | |||
| 16 | public function __construct(int $code, string $message) |
||
| 17 | { |
||
| 18 | $this->code = $code; |
||
| 19 | $this->message = $message; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getCode(): int |
||
| 23 | { |
||
| 24 | return $this->code; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getMessage(): string |
||
| 30 | } |
||
| 31 | } |