Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function __construct(Connection $conn, string $sql, array $values) |
||
11 | { |
||
12 | $this->stmt = $conn->prepare($sql); |
||
13 | foreach ($values as $value) { |
||
14 | $this->stmt->bindValue( |
||
15 | $value['parameter'], |
||
16 | $value['value'], |
||
17 | $value['data_type'] ?? null |
||
18 | ); |
||
19 | } |
||
20 | $this->stmt->execute(); |
||
21 | |||
22 | $this->position = 0; |
||
23 | } |
||
24 | } |
||
25 |