<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Mitarbeiter\Anmeldung\HandleGetGebuehr4Ajax;

class HandleGetGebuehr4AjaxController extends \Kufer\KuferTools\Basis\Controller\AjaxToolController
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new HandleGetGebuehr4AjaxUseCase(
      $this->getRequestObj()
    );
  }

  protected function getRequestObj()
  {
    $requestObj = new HandleGetGebuehr4AjaxRequest();
    $requestObj->anmForm = \GetOperations::getVarValue('anmForm', 0);
    $requestObj->weitereTN = \GetOperations::getVarValue('weitereTN', 0);
    $requestObj->nachlass = \GetOperations::getVarValue('nachlass', 0.0);

    return $requestObj;
  }

  protected function getPresenter($pUseCaseResponse)
  {
    return new HandleGetGebuehr4AjaxPresenter($pUseCaseResponse);
  }
}