add docs entity question

pull/17/head
parent 13b83de094
commit b2d2ae3746

@ -10,79 +10,138 @@
private string $answerD; private string $answerD;
private string $cAnswer; 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) public function __construct(int $id_question, string $question, string $answerA, string $answerB, string $answerC, string $answerD, string $cAnswer)
{ {
$this -> id_question = $id_question; $this->id_question = $id_question;
$this -> question = $question; $this->question = $question;
$this -> answerA = $answerA; $this->answerA = $answerA;
$this -> answerB = $answerB; $this->answerB = $answerB;
$this -> answerC = $answerC; $this->answerC = $answerC;
$this -> answerD = $answerD; $this->answerD = $answerD;
$this -> cAnswer = $cAnswer; $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;
}
} }
Loading…
Cancel
Save