Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | final class ErrorMessage implements Error |
||
7 | { |
||
8 | public function __construct(private string $message, private Rule $rule, private ?string $field = null) |
||
9 | { |
||
10 | } |
||
11 | |||
12 | /** @inheritDoc */ |
||
13 | public function message(): string |
||
16 | } |
||
17 | |||
18 | /** @inheritDoc */ |
||
19 | public function field(): ?string |
||
22 | } |
||
23 | |||
24 | /** @inheritDoc */ |
||
25 | public function rule(): Rule |
||
28 | } |
||
29 | } |
||
30 |