| Conditions | 2 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function exec(): ?int |
||
| 40 | { |
||
| 41 | try { |
||
| 42 | $this->mountQuery(); |
||
| 43 | |||
| 44 | $stmt = $this->db->prepare($this->query); |
||
| 45 | |||
| 46 | QueryHelpers::bind($stmt, $this->flatBindings()); |
||
| 47 | |||
| 48 | $stmt->execute(); |
||
| 49 | |||
| 50 | return $stmt->rowCount() ?? 1; |
||
| 51 | } catch (\PDOException $exception) { |
||
| 52 | $this->handleError($exception); |
||
| 53 | } |
||
| 56 |