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\Visitor; |
||
| 8 | |||
| 9 | use Johmanx10\Transaction\Exception\TransactionRolledBackExceptionInterface; |
||
| 10 | use Johmanx10\Transaction\TransactionInterface; |
||
| 11 | |||
| 12 | interface AcceptingTransactionInterface extends TransactionInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Commit the operations in the transaction. |
||
| 16 | * Roll back operations in reverse order, from the point where a throwable |
||
| 17 | * was caught. |
||
| 18 | * |
||
| 19 | * @param OperationVisitorInterface ...$visitors |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | * |
||
| 23 | * @throws TransactionRolledBackExceptionInterface When the transaction was |
||
| 24 | * rolled back. |
||
| 25 | */ |
||
| 26 | public function commit(OperationVisitorInterface ...$visitors): void; |
||
| 27 | } |
||
| 28 |