| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class ErrorField implements ExceptionInterface |
||
| 6 | { |
||
| 7 | public function __construct( |
||
| 8 | private string $field, |
||
| 9 | private string $code, |
||
| 10 | private string $message |
||
| 11 | ) |
||
| 12 | { |
||
| 13 | } |
||
| 14 | |||
| 15 | public function getField(): string |
||
| 16 | { |
||
| 17 | return $this->field; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getMessage(): string |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getCode(): string |
||
| 26 | { |
||
| 27 | return $this->code; |
||
| 28 | 3 | } |
|
| 29 | |||
| 30 | 3 | public function toArray(): array |
|
| 36 | ]; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |