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


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

use Kufer\Web\KuferTools\Utils\StatusMessages\StatusMessage;

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

  protected function getRequestObj()
  {
    $requestObj = new DozHonorarAbsendenRequest();
    $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\Web\KuferTools\Mitarbeiter\KursUebersicht\KursDetails\KursDetailsExternController($statusMessageContainer);
  }

  
}