| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class ErrorEntry |
||
| 5 | { |
||
| 6 | private $code; |
||
| 7 | private $field; |
||
| 8 | private $message; |
||
| 9 | private $constraint; |
||
| 10 | |||
| 11 | 3 | public function __construct(int $code, string $field, string $message, string $constraint) |
|
| 12 | { |
||
| 13 | 3 | $this->code = $code; |
|
| 14 | 3 | $this->field = $field; |
|
| 15 | 3 | $this->message = $message; |
|
| 16 | 3 | $this->constraint = $constraint; |
|
| 17 | 3 | } |
|
| 18 | |||
| 19 | 2 | public function code() : int { |
|
| 20 | 2 | return $this->code; |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function field() : string { |
|
| 24 | 1 | return $this->field; |
|
| 25 | } |
||
| 26 | |||
| 27 | 2 | public function message() : string { |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function constraint() : string { |
|
| 33 | } |
||
| 34 | } |