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