Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class TransactionManager implements TransactionManagerInterface |
||
12 | { |
||
13 | private $em; |
||
14 | |||
15 | public function __construct(EntityManagerInterface $em) |
||
16 | { |
||
17 | $this->em = $em; |
||
18 | } |
||
19 | |||
20 | public function begin(): void |
||
21 | { |
||
22 | $this->em->beginTransaction(); |
||
23 | } |
||
24 | |||
25 | public function commit(): void |
||
28 | } |
||
29 | |||
30 | public function rollback(): void |
||
31 | { |
||
32 | $this->em->rollback(); |
||
33 | } |
||
34 | |||
35 | public function run(Closure $fn): void |
||
38 | } |
||
39 | } |
||
40 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.