You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.2 KiB
88 lines
2.2 KiB
<?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;
|
|
}
|
|
} |