| 1 | <?php |
||
| 21 | class Answer |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | * @ORM\Column(type="integer") |
||
| 27 | */ |
||
| 28 | private $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\Column(name="text_answer", type="string") |
||
| 32 | * @Assert\NotBlank() |
||
| 33 | */ |
||
| 34 | private $textAnswer; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @ORM\Column(name="correctly", type="boolean") |
||
| 38 | */ |
||
| 39 | private $correctly; |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Question", inversedBy="answers") |
||
| 44 | */ |
||
| 45 | private $question; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function getQuestion() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param mixed $question |
||
| 57 | */ |
||
| 58 | 27 | public function setQuestion(Question $question = null) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return mixed |
||
| 65 | */ |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return mixed |
||
| 69 | */ |
||
| 70 | 1 | public function getId() |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return mixed |
||
| 77 | */ |
||
| 78 | 2 | public function getTextAnswer() |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @param mixed $textAnswer |
||
| 85 | */ |
||
| 86 | 27 | public function setTextAnswer($textAnswer) |
|
| 90 | |||
| 91 | /** |
||
| 92 | * @return mixed |
||
| 93 | */ |
||
| 94 | 1 | public function getCorrectly() |
|
| 98 | |||
| 99 | /** |
||
| 100 | * @param mixed $correctly |
||
| 101 | */ |
||
| 102 | 27 | public function setCorrectly($correctly) |
|
| 106 | } |