johmanx10 /
transaction
| 1 | <?php |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 2 | /** |
||
| 3 | * Copyright MediaCT. All rights reserved. |
||
| 4 | * https://www.mediact.nl |
||
| 5 | */ |
||
| 6 | |||
| 7 | namespace Johmanx10\Transaction; |
||
| 8 | |||
| 9 | use Throwable; |
||
| 10 | |||
| 11 | interface OperationFailureInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get the failed operation. |
||
| 15 | * |
||
| 16 | * @return OperationInterface |
||
| 17 | */ |
||
| 18 | public function getOperation(): OperationInterface; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get the exception that caused the operation to fail. |
||
| 22 | * |
||
| 23 | * @return Throwable|null |
||
| 24 | */ |
||
| 25 | public function getException(): ?Throwable; |
||
| 26 | } |
||
| 27 |