Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait CommandPdoTrait |
||
10 | { |
||
11 | /** |
||
12 | * @psalm-var ParamInterface[] |
||
13 | */ |
||
14 | protected array $params = []; |
||
15 | |||
16 | protected ?PDOStatement $pdoStatement = null; |
||
17 | |||
18 | public function getPdoStatement(): ?PDOStatement |
||
21 | } |
||
22 | |||
23 | public function cancel(): void |
||
24 | { |
||
25 | $this->pdoStatement = null; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Binds pending parameters that were registered via {@see bindValue()} and {@see bindValues()}. |
||
30 | * |
||
31 | * Note that this method requires an active {@see pdoStatement}. |
||
32 | */ |
||
33 | protected function bindPendingParams(): void |
||
37 | } |
||
38 | } |
||
39 | |||
40 | public function bindParam( |
||
64 |