Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function getAnswersByOneQuestionId(int $questionID): array |
||
36 | { |
||
37 | $stmt = $this->db->prepare('SELECT * FROM answers WHERE question_id = :qid'); |
||
38 | $stmt->bindValue(':qid', $questionID, PDO::PARAM_INT); |
||
39 | $stmt->execute(); |
||
40 | |||
41 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
||
42 | } |
||
43 | } |
||
44 |