Exemplo n.º 1
0
 public function isEqualTo(AdvancedUserInterface $user)
 {
     if (!$user instanceof AdvancedUserInterface) {
         return false;
     }
     if ($this->password !== $user->getPassword()) {
         return false;
     }
     if ($this->getSalt() !== $user->getSalt()) {
         return false;
     }
     if ($this->username !== $user->getUsername()) {
         return false;
     }
     return true;
 }