Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Failure implements TransactionResult |
||
6 | { |
||
7 | /** |
||
8 | * The reason the transaction failed |
||
9 | * @var \Throwable |
||
10 | */ |
||
11 | public $exception; |
||
12 | |||
13 | public function __construct(\Throwable $exception) |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * @throws \Throwable |
||
20 | */ |
||
21 | public function throwFailures() |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Whatever the final state was after finishing the transaction |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function finalState() |
||
35 |