| Conditions | 2 | 
| Paths | 4 | 
| Total Lines | 29 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 28 | public function delete( | ||
| 29 | $table, | ||
| 30 | $where, | ||
| 31 | $whereRaw, | ||
| 32 | $whereIn, | ||
| 33 | $whereNotIn, | ||
| 34 | $whereNull, | ||
| 35 | $whereNotNull | ||
| 36 | ) | ||
| 37 |     { | ||
| 38 | $wqb = new WhereQueryBuilder(); | ||
| 39 | $query = "DELETE FROM ".$table; | ||
| 40 | |||
| 41 |         try{ | ||
| 42 | $whereQuery = $wqb->buildAllWhereQuery( | ||
| 43 | $where, | ||
| 44 | $whereRaw, | ||
| 45 | $whereIn, | ||
| 46 | $whereNotIn, | ||
| 47 | $whereNull, | ||
| 48 | $whereNotNull | ||
| 49 | ); | ||
| 50 |             $query.= " ".join(" ", $whereQuery); | ||
| 51 | Connection::get()->query($this->queryPrefix($query)); | ||
| 52 |         } catch(Exception $e){ | ||
| 53 | throw new Exception($e->getMessage()); | ||
| 54 | } | ||
| 55 | |||
| 56 | return true; | ||
| 57 | } | ||
| 59 |