From 95fd3104a37369201f112a10a7457495ad49d2bc Mon Sep 17 00:00:00 2001 From: Antoine Jourdain Date: Thu, 19 Oct 2023 11:48:34 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20la=20classe=20User?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project/php/User.php | 37 +++++++++++++++++++++++++++++++++++++ Project/php/index.php | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 Project/php/User.php diff --git a/Project/php/User.php b/Project/php/User.php new file mode 100644 index 0000000..d081eba --- /dev/null +++ b/Project/php/User.php @@ -0,0 +1,37 @@ +id = $id; + $this->mail = $mail; + $this->nom = $nom; + $this->prenom = $prenom; + } + + protected function changeMail(String $newMail){ + $this->mail = $newMail; + } + + protected function changeNom(String $newNom){ + $this->nom = $newNom; + } + + protected function changePrenom(String $newPrenom){ + $this->prenom = $newPrenom; + } +} \ No newline at end of file diff --git a/Project/php/index.php b/Project/php/index.php index e69de29..ba2e1f6 100644 --- a/Project/php/index.php +++ b/Project/php/index.php @@ -0,0 +1,5 @@ + \ No newline at end of file