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

namespace Kufer\Web\KuferTools\Veranstalter\DozentenInfo\Detailsreiter\Kurse\PdfListen\HonorarListen\ShowHonorarListen;

class ShowHonorarListenController extends \Kufer\Web\KuferTools\Veranstalter\DozentenInfo\Detailsreiter\Kurse\PdfListen\DruckListen\ShowDruckListen\ShowDruckListenController
{
  protected function getUseCase(): \Kufer\Web\KuferTools\Basis\UseCase\UseCase
  {
    return new ShowHonorarListenUseCase(
      $this->getRequestObj()
    );
  }

  protected function getRequestObj()
  {
    
    $requestObj = parent::getRequestObj();
    $knrs = \PostOperations::getVarValue('knrs');
    $requestObj->knrAry = explode(':', $knrs);

    return $requestObj;
  }

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