Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function insertIncorrect(Question $question) |
||
26 | { |
||
27 | $em = $this->doctrine->getManager(); |
||
28 | |||
29 | $answer = new Answer(); |
||
30 | $answer->setQuestion($question); |
||
31 | $answer->setCorrectly(true); |
||
32 | $answer->setTextAnswer('There is no correct answer'); |
||
33 | |||
34 | $em->persist($answer); |
||
35 | |||
36 | return; |
||
37 | } |
||
38 | } |