Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 3 | public function __construct(OperationFailureInterface ...$failures) |
|
23 | { |
||
24 | 3 | $this->failures = $failures; |
|
25 | |||
26 | 3 | parent::__construct( |
|
27 | 3 | sprintf( |
|
28 | 3 | '%d operations were rolled back: %s', |
|
29 | 3 | count($failures), |
|
30 | 3 | implode( |
|
31 | 3 | ', ', |
|
32 | 3 | array_map( |
|
33 | function (OperationFailureInterface $failure): int { |
||
34 | 2 | return spl_object_id($failure->getOperation()); |
|
35 | 3 | }, |
|
36 | 3 | $failures |
|
37 | ) |
||
53 |