Conditions | 2 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __construct( |
||
31 | EntityId $entityId, |
||
32 | EntityId $redirectTargetId, |
||
33 | $message = null, |
||
34 | ?Exception $previous = null |
||
35 | ) { |
||
36 | $defaultMessage = 'Unresolved redirect from ' . $entityId->getSerialization() . ' to ' |
||
37 | . $redirectTargetId->getSerialization(); |
||
38 | |||
39 | parent::__construct( |
||
40 | $entityId, |
||
41 | $message ?: $defaultMessage, |
||
42 | $previous |
||
43 | ); |
||
44 | |||
45 | $this->redirectTargetId = $redirectTargetId; |
||
46 | } |
||
58 |