Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class RollbackOnlyTransactionMiddleware implements Middleware |
||
13 | { |
||
14 | private EntityManagerInterface $entityManager; |
||
15 | |||
16 | public function __construct(EntityManagerInterface $entityManager) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Executes the given command and optionally returns a value |
||
23 | * |
||
24 | * @return mixed |
||
25 | * |
||
26 | * @throws Throwable |
||
27 | * @throws Exception |
||
28 | */ |
||
29 | public function execute(object $command, callable $next) |
||
51 |