From 483f168b46f48a0d7df83a668549c850fccc3dfb Mon Sep 17 00:00:00 2001 From: "lucie.goigoux2" Date: Wed, 25 Oct 2023 11:08:33 +0200 Subject: [PATCH] modification User --- Project/php/model/User.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Project/php/model/User.php b/Project/php/model/User.php index 3ff7ab7..99805f8 100755 --- a/Project/php/model/User.php +++ b/Project/php/model/User.php @@ -6,32 +6,32 @@ class User { protected String $id; protected String $mail; - protected String $nom; - protected String $prenom; + protected String $name; + protected String $surname; /** * @param String $id * @param String $mail - * @param String $nom - * @param String $prenom + * @param String $name + * @param String $surname */ - public function __construct(string $id, string $mail, string $nom, string $prenom) + public function __construct(string $id, string $mail, string $name, string $surname) { $this->id = $id; $this->mail = $mail; - $this->nom = $nom; - $this->prenom = $prenom; + $this->name = $name; + $this->surname = $surname; } protected function changeMail(String $newMail){ $this->mail = $newMail; } - protected function changeNom(String $newNom){ - $this->nom = $newNom; + protected function changeName(String $newName){ + $this->name = $newName; } - protected function changePrenom(String $newPrenom){ - $this->prenom = $newPrenom; + protected function changeSurname(String $newSurname){ + $this->surname = $newSurname; } } \ No newline at end of file