| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| 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 | $this->data = []; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |