| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function findAllCommentsWhere($where, $value) |
||
| 33 | { |
||
| 34 | $this->checkDb(); |
||
| 35 | $params = is_array($value) ? $value : [$value]; |
||
| 36 | return $this->db->connect() |
||
| 37 | ->select() |
||
| 38 | ->from($this->tableName) |
||
| 39 | ->where($where . " = ?") |
||
| 40 | ->execute($params) |
||
| 41 | ->fetchAllClass(get_class($this)); |
||
| 42 | } |
||
| 44 |