From b2d2ae3746cc49c5a19d4f9fb8b0d57965b7590e Mon Sep 17 00:00:00 2001 From: "louis.guichard-montguers" Date: Wed, 23 Oct 2024 17:04:21 +0200 Subject: [PATCH] add docs entity question --- src/Entity/questionEntity.php | 125 +++++++++++++++++++++++++--------- 1 file changed, 92 insertions(+), 33 deletions(-) diff --git a/src/Entity/questionEntity.php b/src/Entity/questionEntity.php index fed1e6f..bc069c2 100644 --- a/src/Entity/questionEntity.php +++ b/src/Entity/questionEntity.php @@ -10,79 +10,138 @@ private string $answerD; private string $cAnswer; + /** + * @param int $id_question + * @param string $question + * @param string $answerA + * @param string $answerB + * @param string $answerC + * @param string $answerD + * @param string $cAnswer + */ public function __construct(int $id_question, string $question, string $answerA, string $answerB, string $answerC, string $answerD, string $cAnswer) { - $this -> id_question = $id_question; - $this -> question = $question; - $this -> answerA = $answerA; - $this -> answerB = $answerB; - $this -> answerC = $answerC; - $this -> answerD = $answerD; - $this -> cAnswer = $cAnswer; + $this->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 int + */ + public function getIdQuestion(): int { - return $this -> id_question; + return $this->id_question; } - public function getQuestion() : string + /** + * @param int $id_question + */ + public function setIdQuestion(int $id_question): void { - return $this -> question; + $this->id_question = $id_question; } - public function getAnswerA() : string + /** + * @return string + */ + public function getQuestion(): string { - return $this -> answerA; + return $this->question; } - public function getAnswerB() : string + /** + * @param string $question + */ + public function setQuestion(string $question): void { - return $this -> answerB; + $this->question = $question; } - public function getAnswerC() : string + /** + * @return string + */ + public function getAnswerA(): string { - return $this -> answerC; + return $this->answerA; } - public function getAnswerD() : string + /** + * @param string $answerA + */ + public function setAnswerA(string $answerA): void { - return $this -> answerD; + $this->answerA = $answerA; } - public function getCAnswer() : string + /** + * @return string + */ + public function getAnswerB(): string { - return $this -> cAnswer; + return $this->answerB; } - public function setQuestion(string $newQuestion) : void + /** + * @param string $answerB + */ + public function setAnswerB(string $answerB): void { - $this -> question = $newQuestion; + $this->answerB = $answerB; } - public function setAnswerA(string $newAnswerA) : void + /** + * @return string + */ + public function getAnswerC(): string { - $this -> answerA = $newAnswerA; + return $this->answerC; } - public function setAnswerB(string $newAnswerB) : void + /** + * @param string $answerC + */ + public function setAnswerC(string $answerC): void { - $this -> answerB = $newAnswerB; + $this->answerC = $answerC; } - public function setAnswerC(string $newAnswerC) : void + /** + * @return string + */ + public function getAnswerD(): string { - $this -> answerC = $newAnswerC; + return $this->answerD; } - public function setAnswerD(string $newAnswerD) : void + /** + * @param string $answerD + */ + public function setAnswerD(string $answerD): void { - $this -> answerD = $newAnswerD; + $this->answerD = $answerD; } - public function setCAnswer(string $newCAnswer) : void + /** + * @return string + */ + public function getCAnswer(): string { - $this -> cAnswer = $newCAnswer; + return $this->cAnswer; } + + /** + * @param string $cAnswer + */ + public function setCAnswer(string $cAnswer): void + { + $this->cAnswer = $cAnswer; + } + + + } \ No newline at end of file