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