From e369db326b3c766e1c438cd8c709e2d3003b9748 Mon Sep 17 00:00:00 2001 From: "anthony.richard" Date: Wed, 1 Nov 2023 15:20:02 +0100 Subject: [PATCH] =?UTF-8?q?suppression=20des=20classes=20Student=20et=20Te?= =?UTF-8?q?acher=20(ce=20sont=20pas=20des=20classes=20m=C3=A9tiers=20mais?= =?UTF-8?q?=20des=20controllers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project/php/model/Student.php | 50 ----------------------------------- Project/php/model/Teacher.php | 45 ------------------------------- 2 files changed, 95 deletions(-) delete mode 100755 Project/php/model/Student.php delete mode 100755 Project/php/model/Teacher.php diff --git a/Project/php/model/Student.php b/Project/php/model/Student.php deleted file mode 100755 index 3c66c96..0000000 --- a/Project/php/model/Student.php +++ /dev/null @@ -1,50 +0,0 @@ -nickname = $nickname; - $this->extraTime = $extraTime; - } - - /** - * @return bool - */ - public function isExtraTime(): bool - { - return $this->extraTime; - } - - /** - * @param bool $extraTime - */ - public function setExtraTime(bool $extraTime): void - { - $this->extraTime = $extraTime; - } - - /** - * @param String $nickname - */ - public function setNickname(string $nickname): void - { - $this->nickname = $nickname; - } - - public function __toString(): string - { - return "Student : ".parent::__toString()." ".$this->nickname." ".$this->extraTime; - } - -} \ No newline at end of file diff --git a/Project/php/model/Teacher.php b/Project/php/model/Teacher.php deleted file mode 100755 index 5b5820d..0000000 --- a/Project/php/model/Teacher.php +++ /dev/null @@ -1,45 +0,0 @@ -vocab = $vocab; - } - - /** - * @return array - */ - public function getVocab(): array - { - return $this->vocab; - } - - /** - * @param array $vocab - */ - public function setVocab(array $vocab): void - { - $this->vocab = $vocab; - } - - /* - public function createVocabulary($array = [], String $name_test, String $url_image){ - $a = new Vocabulary($array,$name_test,$url_image); - $this->vocab[] = $a; - return $a; - } - - protected function deleteVocabulary(Vocabulary $a){ - foreach($this->vocab as $r){ - if($r == $a) unset($this->vocab[$r]); - } - } - */ - -}