Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | private $_transaction; |
||
1 ignored issue
–
show
|
|||
38 | |||
39 | /** |
||
40 | * Returns the currently active transaction. |
||
41 | * @return Transaction the currently active transaction. Null if no active transaction. |
||
42 | */ |
||
43 | 124 | public function getTransaction() |
|
44 | { |
||
45 | 124 | return $this->_transaction && $this->_transaction->getIsActive() ? $this->_transaction : null; |
|
46 | } |
||
74 |