| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function map( ConstraintViolationListInterface $violations ): array { |
||
| 23 | $errors = []; |
||
| 24 | |||
| 25 | foreach ( $violations as $violation ) { |
||
| 26 | /** @var ConstraintViolationInterface $violation */ |
||
| 27 | $entryErrors = (array) $this->propertyAccessor->getValue( $errors, $violation->getPropertyPath() ); |
||
| 28 | $entryErrors[] = $violation->getMessage(); |
||
| 29 | $this->propertyAccessor->setValue( $errors, $violation->getPropertyPath(), $entryErrors ); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $errors; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |