Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class ValidationException extends LogicException |
||
11 | { |
||
12 | /** |
||
13 | * @inheritDoc |
||
14 | */ |
||
15 | public function __construct($violation, array $path = [], $previous = null) |
||
16 | { |
||
17 | $message = sprintf('%s: %s', self::renderPath($path), $violation); |
||
18 | parent::__construct($message, 0, $previous); |
||
19 | } |
||
20 | |||
21 | private static function renderPath(array $path) |
||
24 | } |
||
25 | } |
||
26 |