| 1 | <?php |
||
| 7 | class MultipleTransactionManager extends SimpleTransactionManager |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int number of transactions currently running |
||
| 11 | */ |
||
| 12 | private $transactionCpt = 0; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | public function beginTransaction() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function commit() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function rollback() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Reset the transaction. |
||
| 56 | */ |
||
| 57 | private function reset() |
||
| 61 | } |
||
| 62 |
Overwriting private methods is generally fine as long as you also use private visibility. It might still be preferable for understandability to use a different method name.