public function matchPassword(IUser $user, $password) { return $user->getPassword() === $this->calculateHash($password, $user->getPassword()); }