Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function __construct( |
|
28 | callable $operation, |
||
29 | callable $rollback = null, |
||
30 | string $description = null |
||
31 | ) { |
||
32 | 1 | $this->operation = $operation; |
|
33 | 1 | $this->rollback = $rollback; |
|
34 | 1 | $this->description = $description ?? sprintf( |
|
35 | 1 | 'Generic operation %s', |
|
36 | 1 | spl_object_hash($this) |
|
37 | ); |
||
72 |