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

namespace Kufer\KuferTools\Firma\KursUebersicht\KursUebersicht\Ics;

class IcsAuswahlController extends \Kufer\KuferTools\Basis\Ics\IcsAuswahlController
{
  
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new IcsAuswahlUseCase(
      $this->getRequestObj()
    );
  }

  
  protected function getRequestObj()
  {
    $requestObj = parent::getRequestObj();
    $belnrString = \GetOperations::getVarValue('belnummern');
    $requestObj->belnummern = explode(':', $belnrString);
    $terminNr = \GetOperations::getVarValue('terminnr');
    $requestObj->terminNr = explode(':', $terminNr);

    return $requestObj;
  }

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