From 7d791a728e1ca75903496728a127bbf4ecbacca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=81=C2=81=C2=81Erina=20Point?= Date: Tue, 25 Oct 2022 13:50:16 +0200 Subject: [PATCH] model:Fichier et Dossier: constructeur, accesseurs, muttateurs --- model/Dossier.php | 16 ++++++++++++++++ model/Fichier.php | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 model/Dossier.php create mode 100644 model/Fichier.php diff --git a/model/Dossier.php b/model/Dossier.php new file mode 100644 index 0000000..59ab823 --- /dev/null +++ b/model/Dossier.php @@ -0,0 +1,16 @@ +elements = $elements; + } + + public function addFichier(Fichier $file){ + array_push($this->elements, $file); + } +} diff --git a/model/Fichier.php b/model/Fichier.php new file mode 100644 index 0000000..8028d00 --- /dev/null +++ b/model/Fichier.php @@ -0,0 +1,27 @@ +fileName = $name; + $this->path = $path; + } + + public function getName(): String{ + return $this->fileName; + } + + public function getPath(): String{ + return $this->path; + } + + public function setName(String $newName){ + $this->fileName = $newName; + } + + public function setPath(String $newPath){ + $this->path = $newPath; + } +}