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

namespace Kufer\Web\KuferTools\Teilnehmer\BayerischerApothekertagEhrengaeste\CheckKonto;

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

  protected function getRequestObj()
  {
    $requestObj = new CheckKontoRequest();
    $requestObj->konto = \RequestOperations::getVarValue('konto');
    $requestObj->blz = \RequestOperations::getVarValue('blz');

    return $requestObj;
  }

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