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


namespace Kufer\KuferTools\Mitarbeiter\KursUebersicht\Detailsreiter\Honorar\DozentenHonorar;

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

  protected function getRequestObj()
  {
    $requestObj = new DozHonorarDialogRequest();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->dozKursId = \GetOperations::getVarValue('dozKursId');

    return $requestObj;
  }

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