add docs entity question

pull/17/head
parent 13b83de094
commit b2d2ae3746

@ -10,6 +10,15 @@
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;
@ -21,68 +30,118 @@
$this->cAnswer = $cAnswer; $this->cAnswer = $cAnswer;
} }
/**
* @return int
*/
public function getIdQuestion(): int public function getIdQuestion(): int
{ {
return $this->id_question; return $this->id_question;
} }
/**
* @param int $id_question
*/
public function setIdQuestion(int $id_question): void
{
$this->id_question = $id_question;
}
/**
* @return string
*/
public function getQuestion(): string public function getQuestion(): string
{ {
return $this->question; return $this->question;
} }
public function getAnswerA() : string /**
* @param string $question
*/
public function setQuestion(string $question): void
{ {
return $this -> answerA; $this->question = $question;
} }
public function getAnswerB() : string /**
* @return string
*/
public function getAnswerA(): string
{ {
return $this -> answerB; return $this->answerA;
} }
public function getAnswerC() : string /**
* @param string $answerA
*/
public function setAnswerA(string $answerA): void
{ {
return $this -> answerC; $this->answerA = $answerA;
} }
public function getAnswerD() : string /**
* @return string
*/
public function getAnswerB(): string
{ {
return $this -> answerD; return $this->answerB;
} }
public function getCAnswer() : string /**
* @param string $answerB
*/
public function setAnswerB(string $answerB): void
{ {
return $this -> cAnswer; $this->answerB = $answerB;
} }
public function setQuestion(string $newQuestion) : void /**
* @return string
*/
public function getAnswerC(): string
{ {
$this -> question = $newQuestion; return $this->answerC;
} }
public function setAnswerA(string $newAnswerA) : void /**
* @param string $answerC
*/
public function setAnswerC(string $answerC): void
{ {
$this -> answerA = $newAnswerA; $this->answerC = $answerC;
} }
public function setAnswerB(string $newAnswerB) : void /**
* @return string
*/
public function getAnswerD(): string
{ {
$this -> answerB = $newAnswerB; return $this->answerD;
} }
public function setAnswerC(string $newAnswerC) : void /**
* @param string $answerD
*/
public function setAnswerD(string $answerD): void
{ {
$this -> answerC = $newAnswerC; $this->answerD = $answerD;
} }
public function setAnswerD(string $newAnswerD) : void /**
* @return string
*/
public function getCAnswer(): string
{ {
$this -> answerD = $newAnswerD; return $this->cAnswer;
} }
public function setCAnswer(string $newCAnswer) : void /**
* @param string $cAnswer
*/
public function setCAnswer(string $cAnswer): void
{ {
$this -> cAnswer = $newCAnswer; $this->cAnswer = $cAnswer;
} }
} }
Loading…
Cancel
Save