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