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

namespace Kufer\KuferTools\Teilnehmer\BayerischerApothekertagStudenten\ShowAnmeldeDialog;

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

  protected function getRequestObj()
  {
    $requestObj = new ShowAnmeldeDialogRequest();
    $kursData = \PostOperations::getVarValue('kursdata');
    $requestObj->knrAry = $kursData['knrs'];

    return $requestObj;
  }

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