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

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

use Kufer\Web\KuferTools\Firma\KursUebersicht\Detailsreiter\Termine\TermineRequest;

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

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

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

    return $request;
  }
}