| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | class ValidationException extends DoctrineStaticMetaException |
||
| 11 | { |
||
| 12 | use RelativePathTraceTrait; |
||
| 13 | |||
| 14 | protected $entity; |
||
| 15 | |||
| 16 | protected $errors; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * ValidationException constructor. |
||
| 20 | * |
||
| 21 | * @param ConstraintViolationListInterface|ConstraintViolationInterface[] $errors |
||
| 22 | * @param EntityInterface $entity |
||
| 23 | * @param int $code |
||
| 24 | * @param \Exception|null $previous |
||
| 25 | */ |
||
| 26 | 3 | public function __construct( |
|
| 42 | 3 | } |
|
| 43 | |||
| 44 | 1 | public function getInvalidEntity(): EntityInterface |
|
| 45 | { |
||
| 46 | 1 | return $this->entity; |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | public function getValidationErrors(): ConstraintViolationListInterface |
|
| 52 | } |
||
| 53 | } |
||
| 54 |