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; + } +}