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.
58 lines
1014 B
58 lines
1014 B
<?php
|
|
|
|
class QuestionQCM {
|
|
|
|
|
|
private $numQuestion;
|
|
private $question;
|
|
private $bareme;
|
|
private $reponse = array();
|
|
|
|
function __construct($numQuestion,$question,$reponse,$bareme){
|
|
$this->numQuestion = $numQuestion;
|
|
$this->question = $question;
|
|
$this->reponse = $reponse;
|
|
$this->bareme= $bareme;
|
|
}
|
|
|
|
// Getters
|
|
function getNumQuestion() {
|
|
return $this->numQuestion;
|
|
}
|
|
|
|
function getQuestion() {
|
|
return $this->question;
|
|
}
|
|
|
|
function getReponse() {
|
|
return $this->reponse;
|
|
}
|
|
function getBareme() {
|
|
return $this->bareme;
|
|
}
|
|
|
|
|
|
// Setters
|
|
function setNumQuestion($numQuestion) {
|
|
$this->numQuestion = $numQuestion;
|
|
}
|
|
|
|
function setQuestion($question) {
|
|
$this->question = $question;
|
|
}
|
|
|
|
function setReponse($reponse) {
|
|
$this->reponse = $reponse;
|
|
}
|
|
function setBareme($bareme) {
|
|
$this->bareme = $bareme;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|