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