1 | <?php |
||
9 | final class ODMTransaction implements Transaction |
||
10 | { |
||
11 | /** |
||
12 | * @var DocumentManager |
||
13 | */ |
||
14 | private $documentManager; |
||
15 | |||
16 | /** |
||
17 | * @param DocumentManager $documentManager |
||
18 | */ |
||
19 | public function __construct(DocumentManager $documentManager) |
||
23 | |||
24 | /** |
||
25 | * @return void |
||
26 | */ |
||
27 | public function commit() |
||
31 | |||
32 | /** |
||
33 | * @throws UnsupportedOperationException |
||
34 | */ |
||
35 | public function rollback() |
||
41 | |||
42 | /** |
||
43 | * @param mixed $entity |
||
44 | * @return boolean |
||
45 | */ |
||
46 | public function contains($entity) |
||
50 | |||
51 | /** |
||
52 | * @param mixed $entity |
||
53 | */ |
||
54 | public function persist($entity) |
||
58 | |||
59 | /** |
||
60 | * @param mixed $entity |
||
61 | */ |
||
62 | public function delete($entity) |
||
66 | } |
||
67 |