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

namespace Kufer\KuferTools\Hausmeister\Raumbelegung\KursDetails;

class HmKursDetailsController extends \Kufer\KuferTools\Basis\Kursdetails\KursDetailsController
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new HmKursDetailsUseCase(
      $this->getRequestObj()
    );
  }

  protected function getRequestObj()
  {
    
    $requestObj = parent::getRequestObj();
    $requestObj->raumNr = \GetOperations::getVarValue('rnr');

    return $requestObj;
  }

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