parent
0188e2b3d1
commit
1c5910824a
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
class ImageEntity
|
||||
{
|
||||
private int $id_img;
|
||||
private string $img_path;
|
||||
private string $isImgProfil;
|
||||
|
||||
/**
|
||||
* @param int $id_img
|
||||
* @param string $img_path
|
||||
* @param string $isImgProfil
|
||||
*/
|
||||
public function __construct(int $id_img, string $img_path, string $isImgProfil)
|
||||
{
|
||||
$this->id_img = $id_img;
|
||||
$this->img_path = $img_path;
|
||||
$this->isImgProfil = $isImgProfil;
|
||||
}
|
||||
|
||||
public function getIdImg(): int
|
||||
{
|
||||
return $this->id_img;
|
||||
}
|
||||
|
||||
public function setIdImg(int $id_img): void
|
||||
{
|
||||
$this->id_img = $id_img;
|
||||
}
|
||||
|
||||
public function getImgPath(): string
|
||||
{
|
||||
return $this->img_path;
|
||||
}
|
||||
|
||||
public function setImgPath(string $img_path): void
|
||||
{
|
||||
$this->img_path = $img_path;
|
||||
}
|
||||
|
||||
public function getIsImgProfil(): string
|
||||
{
|
||||
return $this->isImgProfil;
|
||||
}
|
||||
|
||||
public function setIsImgProfil(string $isImgProfil): void
|
||||
{
|
||||
$this->isImgProfil = $isImgProfil;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
class Quiz_questionEntity
|
||||
{
|
||||
private int $id_question;
|
||||
private int $id_quiz;
|
||||
|
||||
/**
|
||||
* @param int $id_question
|
||||
* @param int $id_quiz
|
||||
*/
|
||||
public function __construct(int $id_question, int $id_quiz)
|
||||
{
|
||||
$this->id_question = $id_question;
|
||||
$this->id_quiz = $id_quiz;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getIdQuestion(): int
|
||||
{
|
||||
return $this->id_question;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id_question
|
||||
*/
|
||||
public function setIdQuestion(int $id_question): void
|
||||
{
|
||||
$this->id_question = $id_question;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getIdQuiz(): int
|
||||
{
|
||||
return $this->id_quiz;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id_quiz
|
||||
*/
|
||||
public function setIdQuiz(int $id_quiz): void
|
||||
{
|
||||
$this->id_quiz = $id_quiz;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
class Result_quizEntity
|
||||
{
|
||||
private int $id_quiz;
|
||||
private int $nbQuestion;
|
||||
|
||||
/**
|
||||
* @param int $id_quiz
|
||||
* @param int $nbQuestion
|
||||
*/
|
||||
public function __construct(int $id_quiz, int $nbQuestion)
|
||||
{
|
||||
$this->id_quiz = $id_quiz;
|
||||
$this->nbQuestion = $nbQuestion;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getIdQuiz(): int
|
||||
{
|
||||
return $this->id_quiz;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id_quiz
|
||||
*/
|
||||
public function setIdQuiz(int $id_quiz): void
|
||||
{
|
||||
$this->id_quiz = $id_quiz;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getNbQuestion(): int
|
||||
{
|
||||
return $this->nbQuestion;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $nbQuestion
|
||||
*/
|
||||
public function setNbQuestion(int $nbQuestion): void
|
||||
{
|
||||
$this->nbQuestion = $nbQuestion;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in new issue