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.

46 lines
797 B

<?php
class QCM {
private $numQuestion;
private $question;
private $reponse = array();
function __construct($numQuestion,$question,$reponse){
$this->numQuestion = $numQuestion;
$this->question = $question;
$this->reponse = $reponse;
}
// Getters
function getNumQuestion() {
return $this->numQuestion;
}
function getQuestion() {
return $this->question;
}
function getReponse() {
return $this->reponse;
}
// Setters
function setNumQuestion($numQuestion) {
$this->numQuestion = $numQuestion;
}
function setQuestion($question) {
$this->question = $question;
}
function setReponse($reponse) {
$this->reponse = $reponse;
}
}