Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
30 | 3 | public function __construct( |
|
31 | OperationInterface $operation, |
||
32 | int $code, |
||
33 | Throwable $previous, |
||
34 | OperationFailureInterface ...$previousRollbacks |
||
35 | ) { |
||
36 | 3 | $this->operation = $operation; |
|
37 | 3 | $this->previousRollbacks = $previousRollbacks; |
|
38 | |||
39 | 3 | parent::__construct( |
|
40 | 3 | sprintf( |
|
41 | 3 | 'Failed rolling back operation #%d', |
|
42 | 3 | spl_object_id($operation) |
|
43 | ), |
||
44 | 3 | $code, |
|
45 | 3 | $previous |
|
46 | ); |
||
69 |