Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
38 | 9 | public function __construct(\Closure $executeAction, \Closure $rollbackAction, string $processName = null) |
|
39 | { |
||
40 | 9 | if (is_null($processName)) { |
|
41 | 6 | $processName = spl_object_hash($executeAction) . '_' . spl_object_hash($rollbackAction); |
|
42 | } |
||
43 | 9 | $this->executeAction = $executeAction; |
|
44 | 9 | $this->rollbackAction = $rollbackAction; |
|
45 | 9 | $this->processName = $processName; |
|
46 | 9 | } |
|
47 | |||
72 |