From 254c73148e123eac791d7bf9ed8701182200ffb8 Mon Sep 17 00:00:00 2001 From: "anthony.richard" Date: Wed, 25 Oct 2023 15:28:58 +0200 Subject: [PATCH] classe user fix --- Project/php/model/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Project/php/model/User.php b/Project/php/model/User.php index 02849ee..8b8fb07 100755 --- a/Project/php/model/User.php +++ b/Project/php/model/User.php @@ -99,6 +99,11 @@ class User $this->surname = $surname; } + public function __toString(): string + { + return $this->id." ".$this->mail." ".$this->name." ".$this->surname; + } +