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


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

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

  protected function getRequestObj()
  {
    $requestObj = new DozVertragAbsendenRequest();
    $requestObj->dozHonId = \PostOperations::getVarValue('items', '');
    
    $requestObj->dozHonObj = \PostOperations::getVarValue('dozHonObj');

    $action = $this->getActionVal();

    return $this->handleXsrf($requestObj, $action, $requestObj->dozHonId);
  }

  
  protected function getPresenter($pUseCaseResponse)
  {
    return null;
  }

  
  protected function getControllerToForward($pUseCaseResponse)
  {
    

    $statusMessageContainer = $pUseCaseResponse->statusMessageContainer;
    


    
    return new \Kufer\KuferTools\Veranstalter\KursUebersicht\KursDetails\KursDetailsExternController($statusMessageContainer);
  }

  
}