Loading module/Oscar/src/Oscar/Entity/Authentification.php +2 −27 Original line number Diff line number Diff line Loading @@ -86,13 +86,13 @@ class Authentification implements UserInterface, ProviderInterface protected $secret; protected $lastRole; /** * @return AbstractRole|null */ public function getLastRole() { return $this->lastRole; return null; } /** Loading @@ -101,8 +101,6 @@ class Authentification implements UserInterface, ProviderInterface */ public function setLastRole(AbstractRole $lastRole = null) { $this->lastRole = $lastRole; return $this; } Loading @@ -115,29 +113,6 @@ class Authentification implements UserInterface, ProviderInterface $this->settings = []; } protected $lastRole; /** * @return AbstractRole|null */ public function getLastRole() { return $this->lastRole; } /** * @param AbstractRole|null $lastRole * @return self */ public function setLastRole($lastRole = null) { $this->lastRole = $lastRole; return $this; } public function hasRole( $roleId ){ foreach ($this->getRoles() as $role ){ if( $roleId == $role ){ Loading Loading
module/Oscar/src/Oscar/Entity/Authentification.php +2 −27 Original line number Diff line number Diff line Loading @@ -86,13 +86,13 @@ class Authentification implements UserInterface, ProviderInterface protected $secret; protected $lastRole; /** * @return AbstractRole|null */ public function getLastRole() { return $this->lastRole; return null; } /** Loading @@ -101,8 +101,6 @@ class Authentification implements UserInterface, ProviderInterface */ public function setLastRole(AbstractRole $lastRole = null) { $this->lastRole = $lastRole; return $this; } Loading @@ -115,29 +113,6 @@ class Authentification implements UserInterface, ProviderInterface $this->settings = []; } protected $lastRole; /** * @return AbstractRole|null */ public function getLastRole() { return $this->lastRole; } /** * @param AbstractRole|null $lastRole * @return self */ public function setLastRole($lastRole = null) { $this->lastRole = $lastRole; return $this; } public function hasRole( $roleId ){ foreach ($this->getRoles() as $role ){ if( $roleId == $role ){ Loading