1 | <?php |
||
17 | class Transaction implements TransactionInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var CommandInterface[] |
||
21 | */ |
||
22 | private $commands = []; |
||
23 | |||
24 | /** |
||
25 | * Store entity information (update or insert). |
||
26 | * |
||
27 | * @param RecordInterface $record |
||
28 | * |
||
29 | * @throws RecordException |
||
30 | */ |
||
31 | public function store(RecordInterface $record) |
||
35 | |||
36 | /** |
||
37 | * Delete entity from database. |
||
38 | * |
||
39 | * @param RecordInterface $record |
||
40 | * |
||
41 | * @throws RecordException |
||
42 | */ |
||
43 | public function delete(RecordInterface $record) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function addCommand(CommandInterface $command) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | * |
||
59 | * Executing transaction. |
||
60 | */ |
||
61 | public function run() |
||
101 | } |