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

namespace Kufer\Web\KuferTools\Firma\KursUebersicht\Detailsreiter\Info;

use Kufer\Web\KuferTools\Firma\KursUebersicht\Detailsreiter\Info\InfoRequest;

class InfoController extends \Kufer\Web\KuferTools\Basis\Kursdetails\Detailsreiter\Info\InfoController
{
  protected function getUseCase(): \Kufer\Web\KuferTools\Basis\UseCase\UseCase
  {
    return new InfoUseCase(
      $this->getRequestObj()
    );
  }

  protected function createNewRequestObj()
  {
    return new InfoRequest();
  }

  protected function getRequestObj()
  {
    $request = parent::getRequestObj();
    $request->belegId = \GetOperations::getVarValue('belid');

    return $request;
  }
}