Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 25 | public function __construct(ConstraintViolationInterface $error, string $target) |
|
29 | { |
||
30 | 25 | $this->message = $error->getMessage(); |
|
31 | 25 | $this->propertyPath = $error->getPropertyPath(); |
|
32 | 25 | $this->target = str_replace('\\', '.', $target); |
|
33 | 25 | $this->code = $error->getCode(); |
|
34 | } |
||
36 |