| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class DbTransactionHandler extends DbBase |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Transaction initialization |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | 1 | public static function begin() |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Rollback transaction |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | * @throws \Exception |
||
| 43 | */ |
||
| 44 | 1 | public static function rollback() |
|
| 45 | { |
||
| 46 | 1 | return self::getAdapter()->rollback(); |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Apply all queries and close transaction |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | * @throws \Exception |
||
| 54 | */ |
||
| 55 | 1 | public static function commit() |
|
| 58 | } |
||
| 59 | } |
||
| 60 |