Exemplo n.º 1
0
 /**
  * Check if the user is equal
  *
  * @param KObjectInterface|KUserInterface $user
  * @return Boolean
  */
 public function equals(KObjectInterface $user)
 {
     if ($user instanceof KUserInterface) {
         if ($user->getEmail() == $this->getEmail()) {
             if ($user->getPassword() == $this->getPassword()) {
                 return true;
             }
         }
     }
     return false;
 }