diff --git a/src/questionEntity.php b/src/questionEntity.php new file mode 100644 index 0000000..6b3dcc9 --- /dev/null +++ b/src/questionEntity.php @@ -0,0 +1,88 @@ + id_question = $id_question; + $this -> question = $question; + $this -> answerA = $answerA; + $this -> answerB = $answerB; + $this -> answerC = $answerC; + $this -> answerD = $answerD; + $this -> cAnswer = $cAnswer; + } + + public function getIdQuestion() : int + { + return $this -> id_question; + } + + public function getQuestion() : string + { + return $this -> question; + } + + public function getAnswerA() : string + { + return $this -> answerA; + } + + public function getAnswerB() : string + { + return $this -> answerB; + } + + public function getAnswerC() : string + { + return $this -> answerC; + } + + public function getAnswerD() : string + { + return $this -> answerD; + } + + public function getCAnswer() : string + { + return $this -> cAnswer; + } + + public function setQuestion(string $newQuestion) : void + { + $this -> question = $question; + } + + public function setAnswerA(string $newAnswerA) : void + { + $this -> answerA = $newAnswerA; + } + + public function setAnswerB(string $newAnswerB) : void + { + $this -> answerB = $newAnswerB; + } + + public function setAnswerC(string $newAnswerC) : void + { + $this -> answerC = $newAnswerC; + } + + public function setAnswerD(string $newAnswerD) : void + { + $this -> answerD = $newAnswerD; + } + + public function setCAnswer(string $newCAnswer) : void + { + $this -> cAnswer = $newCAnswer; + } + } \ No newline at end of file