| 1 | <?php |
||
| 22 | class DelegatingTransactionHandler implements TransactionHandler |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Transaction handler. |
||
| 26 | * |
||
| 27 | * @var TransactionHandler[] |
||
| 28 | */ |
||
| 29 | private $transactionHandlers; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * DelegatingTransactionHandler constructor. |
||
| 33 | * |
||
| 34 | * @param TransactionHandler[] $transactionHandlers Child transaction handlers. |
||
| 35 | */ |
||
| 36 | public function __construct(array $transactionHandlers) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function begin(): void |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function commit(): void |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function rollback(): void |
||
| 70 | } |
||
| 71 |