From af3e1f37f4b78cf7cbf25f74869989e8f00de81f Mon Sep 17 00:00:00 2001 From: Bertrand Gauthier <bertrand.gauthier@unicaen.fr> Date: Wed, 21 Mar 2018 10:47:48 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20propri=C3=A9t=C3=A9s=20=C3=A0=20la?= =?UTF-8?q?=20classe=20ShibUser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entity/Shibboleth/ShibUser.php | 65 ++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/src/UnicaenAuth/Entity/Shibboleth/ShibUser.php b/src/UnicaenAuth/Entity/Shibboleth/ShibUser.php index a51faa9..82c4114 100644 --- a/src/UnicaenAuth/Entity/Shibboleth/ShibUser.php +++ b/src/UnicaenAuth/Entity/Shibboleth/ShibUser.php @@ -26,6 +26,21 @@ class ShibUser implements UserInterface */ protected $displayName; + /** + * @var string + */ + protected $nom; + + /** + * @var string + */ + protected $prenom; + + /** + * @var string + */ + protected $civilite; + /** * @var int */ @@ -53,7 +68,7 @@ class ShibUser implements UserInterface /** * Set id. * - * @param string $id + * @param string $id supannEmpId ou supannEtuId */ public function setId($id) { @@ -120,6 +135,54 @@ class ShibUser implements UserInterface $this->displayName = $displayName; } + /** + * @return string + */ + public function getNom() + { + return $this->nom; + } + + /** + * @param string $nom + */ + public function setNom($nom) + { + $this->nom = $nom; + } + + /** + * @return string + */ + public function getPrenom() + { + return $this->givenName; + } + + /** + * @param string $prenom + */ + public function setPrenom($prenom) + { + $this->prenom = $prenom; + } + + /** + * @return string + */ + public function getCivilite() + { + return $this->civilite; + } + + /** + * @param string $civilite + */ + public function setCivilite($civilite) + { + $this->civilite = $civilite; + } + /** * Get password. * -- GitLab