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

namespace Kufer\KuferTools\Dozent\Kursplanung\TerminSammelaenderung;

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

  
  protected function getRequestObj()
  {
    $requestObj = new TerminSammelaenderungFormularRequest();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->ktIds = explode(':', \GetOperations::getVarValue('ktIds'));

    return $requestObj;
  }

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