| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | 2 | public function getErrorsIndexedByPath(string $separator = '.'): array |
|
| 56 | { |
||
| 57 | 2 | $errors = []; |
|
| 58 | 2 | foreach ($this->errors as $error) { |
|
| 59 | 2 | $stringValuePath = implode($separator, $error->getValuePath()); |
|
| 60 | 2 | $errors[$stringValuePath][] = $error->getMessage(); |
|
| 61 | } |
||
| 62 | |||
| 63 | 2 | return $errors; |
|
| 64 | } |
||
| 74 |