From 1c5910824aaa79eff668dc77873b591aa6c55220 Mon Sep 17 00:00:00 2001 From: "louis.guichard-montguers" Date: Wed, 23 Oct 2024 16:26:11 +0200 Subject: [PATCH] add 3 new entity --- src/Entity/imageEntity.php | 52 ++++++++++++++++++++++++++++ src/Entity/quiz_questionEntity.php | 54 ++++++++++++++++++++++++++++++ src/Entity/result_quizEntity.php | 54 ++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 src/Entity/imageEntity.php create mode 100644 src/Entity/quiz_questionEntity.php create mode 100644 src/Entity/result_quizEntity.php diff --git a/src/Entity/imageEntity.php b/src/Entity/imageEntity.php new file mode 100644 index 0000000..d4607ba --- /dev/null +++ b/src/Entity/imageEntity.php @@ -0,0 +1,52 @@ +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; + } + + +} \ No newline at end of file diff --git a/src/Entity/quiz_questionEntity.php b/src/Entity/quiz_questionEntity.php new file mode 100644 index 0000000..129430f --- /dev/null +++ b/src/Entity/quiz_questionEntity.php @@ -0,0 +1,54 @@ +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; + } + + + +} \ No newline at end of file diff --git a/src/Entity/result_quizEntity.php b/src/Entity/result_quizEntity.php new file mode 100644 index 0000000..82e6975 --- /dev/null +++ b/src/Entity/result_quizEntity.php @@ -0,0 +1,54 @@ +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; + } + + + +} \ No newline at end of file