Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __construct(string $operation, array $violations, int $code = 0, Throwable $previous = null) |
||
28 | { |
||
29 | $msg = "There was an error building the operation '$operation' : "; |
||
30 | foreach ($violations as $violation) { |
||
31 | $msg .= "\n - " . $violation->getPropertyPath() . " - " . implode(', ', $violation->getParameters()) . " : " . $violation->getMessage(); |
||
32 | } |
||
33 | $msg .= "\n"; |
||
34 | |||
35 | parent::__construct($msg, $code, $previous); |
||
36 | } |
||
37 | } |