<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */


namespace Kufer\Web\KuferTools\Veranstalter\KursUebersicht\Detailsreiter\Honorar\DozentenHonorar;

class DozHonorarDialogController extends \Kufer\Web\KuferTools\Basis\Controller\ToolController
{
  protected function getUseCase(): \Kufer\Web\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);
  }
}