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.
51 lines
917 B
51 lines
917 B
<?php
|
|
|
|
class Question {
|
|
|
|
private $numQuestion;
|
|
private $question;
|
|
private $reponse;
|
|
private $numTp;
|
|
|
|
function __construct($numTp,$numQuestion,$question,$reponse){
|
|
$this->numQuestion = $numQuestion;
|
|
$this->question = $question;
|
|
$this->reponse = $reponse;
|
|
$this->numTp = $numTp ;
|
|
}
|
|
|
|
// Getters
|
|
function getNumQuestion() {
|
|
return $this->numQuestion;
|
|
}
|
|
|
|
function getQuestion() {
|
|
return $this->question;
|
|
}
|
|
|
|
function getReponse() {
|
|
return $this->reponse;
|
|
}
|
|
|
|
function getNumTp() {
|
|
return $this->numTp;
|
|
}
|
|
|
|
// Setters
|
|
function setNumQuestion($numQuestion) {
|
|
$this->numQuestion = $numQuestion;
|
|
}
|
|
|
|
function setQuestion($question) {
|
|
$this->question = $question;
|
|
}
|
|
|
|
function setReponse($reponse) {
|
|
$this->reponse = $reponse;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|