Loading module/Oscar/src/Oscar/Entity/Authentification.php +23 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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. */ Loading Loading
module/Oscar/src/Oscar/Entity/Authentification.php +23 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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. */ Loading