Conditions | 2 |
Paths | 6 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function delete(): ?int |
||
19 | { |
||
20 | try { |
||
21 | $this->mountQuery(); |
||
22 | $stmt = $this->db->prepare($this->query); |
||
23 | QueryHelpers::bind($stmt, $this->flatBindings()); |
||
24 | $stmt->execute(); |
||
25 | return $stmt->rowCount() ?? 1; |
||
26 | } catch (\PDOException $exception) { |
||
27 | $this->handleError($exception); |
||
28 | } |
||
32 |