1 | <?php |
||
15 | class Transaction extends BaseEventEmitter implements TransactionInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var DatabaseInterface |
||
19 | */ |
||
20 | protected $database; |
||
21 | |||
22 | /** |
||
23 | * @var CommandInterface[] |
||
24 | */ |
||
25 | protected $queue; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | protected $open; |
||
31 | |||
32 | /** |
||
33 | * @param DatabaseInterface $database |
||
34 | */ |
||
35 | public function __construct(DatabaseInterface $database) |
||
41 | |||
42 | /** |
||
43 | * @override |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function isOpen() |
||
50 | |||
51 | /** |
||
52 | * @override |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | public function query($sql, $sqlParams = []) |
||
77 | |||
78 | /** |
||
79 | * @override |
||
80 | * @inheritDoc |
||
81 | */ |
||
82 | public function execute($sql, $sqlParams = []) |
||
88 | |||
89 | /** |
||
90 | * @override |
||
91 | * @inheritDoc |
||
92 | */ |
||
93 | public function commit() |
||
115 | |||
116 | /** |
||
117 | * @override |
||
118 | * @inheritDoc |
||
119 | */ |
||
120 | public function rollback() |
||
133 | } |
||
134 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.