Commit b44c78c2 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

FIX : setLastRole (méthode manquante)

parent fc314f67
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ namespace Oscar\Entity;
use BjyAuthorize\Provider\Role\ProviderInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use UnicaenAuth\Entity\Db\AbstractRole;
use UnicaenAuth\Entity\Db\AbstractUser;
use ZfcUser\Entity\UserInterface;


@@ -83,6 +85,27 @@ class Authentification implements UserInterface, ProviderInterface
     */
    protected $secret;


    protected $lastRole;
    /**
     * @return AbstractRole|null
     */
    public function getLastRole()
    {
        return $this->lastRole;
    }

    /**
     * @param AbstractRole|null $lastRole
     * @return self
     */
    public function setLastRole(AbstractRole $lastRole = null)
    {
        $this->lastRole = $lastRole;

        return $this;
    }

    /**
     * Initialies the roles variable.
     */