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