parent
42662d68d0
commit
6bc1d1fc56
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
class QuestionEntity
|
||||
{
|
||||
private int $id_question;
|
||||
private string $question;
|
||||
private string $answerA;
|
||||
private string $answerB;
|
||||
private string $answerC;
|
||||
private string $answerD;
|
||||
private 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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue