/** * Delete user with the given ID. * * @param mixed $userId */ public function deleteUser($userId) { try { return $this->innerGateway->deleteUser($userId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * Delete user with the given ID. * * @param mixed $userId */ public function delete($userId) { $this->userGateway->deleteUser($userId); }