/**
  * {@inheritdoc}
  */
 public function deleteUser(ActivatableInterface $user)
 {
     return (bool) $this->newQuery()->where('email', '=', $user->getActivationEmail())->delete();
 }
 /**
  * Activate a user.
  *
  * @param  ActivatableInterface $user
  *
  * @return void
  */
 protected function activateUser(ActivatableInterface $user)
 {
     try {
         $user->activate();
     } catch (\Exception $e) {
         throw new ActivationException('Could not activate user - ' . $e->getMessage(), $e->getCode(), $e);
     }
 }