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


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

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

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

    return $requestObj;
  }

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