Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
54 | public function beginTransaction($isolationLevel = null) |
||
55 | { |
||
56 | $this->open(); |
||
57 | |||
58 | if (($transaction = $this->getTransaction()) === null) { |
||
59 | $transaction = $this->_transaction = new Transaction(['db' => $this]); |
||
60 | } |
||
61 | $transaction->begin($isolationLevel); |
||
62 | |||
63 | return $transaction; |
||
64 | } |
||
65 | |||
74 |