Skip to content
Snippets Groups Projects
Select Git revision
  • 090ecaa553d8e93a5740ce028a354bd7838e091d
  • master default protected
  • release-1.3.10
  • popover-bootstrap-3.4
  • zf-3.x
  • 3.0.9
  • 3.0.8
  • 1.3.10
  • 3.0.7
  • 3.0.6
  • 3.0.5
  • 3.0.4
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 1.3.9
  • 1.3.8
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
25 results

Db.php

Blame
  • Forked from lib / unicaen / auth
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ShibUser.php 3.51 KiB
    <?php
    
    namespace UnicaenAuth\Entity\Shibboleth;
    
    use ZfcUser\Entity\UserInterface;
    
    class ShibUser implements UserInterface
    {
        /**
         * @var string
         */
        protected $id;
    
        /**
         * @var string
         */
        protected $username;
    
        /**
         * @var string
         */
        protected $email;
    
        /**
         * @var string
         */
        protected $displayName;
    
        /**
         * @var string
         */
        protected $nom;
    
        /**
         * @var string
         */
        protected $prenom;
    
        /**
         * @var string
         */
        protected $civilite;
    
        /**
         * @var int
         */
        protected $state = 1;
    
    
        /**
         * @return string
         */
        public function getEppn()
        {
            return $this->getUsername();
        }
    
        /**
         * Set eduPersoPrincipalName (EPPN).
         *
         * @param string $eppn eduPersoPrincipalName (EPPN), ex: 'gauthierb@unicaen.fr'
         */
        public function setEppn($eppn)
        {
            $this->setUsername($eppn);
        }
    
        /**
         * Get id.
         *
         * @return string
         */
        public function getId()
        {
            return $this->id;
        }
    
        /**
         * Set id.
         *
         * @param string $id supannEmpId ou supannEtuId
         */
        public function setId($id)
        {
            $this->id = $id;
        }
    
        /**
         * Get username.
         *
         * @return string
         */
        public function getUsername()
        {
            return $this->username;
        }
    
        /**
         * Set username.
         *
         * @param string $username
         */
        public function setUsername($username)
        {
            $this->username = $username;
        }
    
        /**
         * Get email.
         *
         * @return string
         */
        public function getEmail()
        {
            return $this->email;
        }
    
        /**
         * Set email.
         *
         * @param string $email
         */
        public function setEmail($email)
        {
            $this->email = $email;
        }
    
        /**
         * Get displayName.
         *
         * @return string
         */
        public function getDisplayName()
        {
            return $this->displayName;
        }
    
        /**
         * Set displayName.
         *
         * @param string $displayName
         */
        public function setDisplayName($displayName)
        {
            $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->prenom;
        }
    
        /**
         * @param string $prenom
         */
        public function setPrenom($prenom)
        {
            $this->prenom = $prenom;
        }
    
        /**
         * @return string|null
         */
        public function getCivilite()
        {
            return $this->civilite;
        }
    
        /**
         * @param string|null $civilite
         */
        public function setCivilite($civilite = null)
        {
            $this->civilite = $civilite;
        }
    
        /**
         * Get password.
         *
         * @return string
         */
        public function getPassword()
        {
            return 'shib';
        }
    
        /**
         * Set password.
         *
         * @param string $password
         */
        public function setPassword($password)
        {
    
        }
    
        /**
         * Get state.
         *
         * @return int
         */
        public function getState()
        {
            return $this->state;
        }
    
        /**
         * Set state.
         *
         * @param int $state
         */
        public function setState($state)
        {
            $this->state = $state;
        }
    
        /**
         *
         * @return string
         */
        public function __toString()
        {
            return $this->getDisplayName();
        }
    }