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

namespace Kufer\KuferTools\Dozent\Anwesenheiten\Feedback;

class KursTageFeedbackFormularController extends \Kufer\KuferTools\Basis\KursDetails\Feedback\FeedbackFormularController
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new KursTageFeedbackFormularUseCase($this->getRequestObj());
  }

  protected function getRequestObj()
  {
    $requestObj = new KtFeedbackFormularRequest();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->ktId = (\GetOperations::isDefined('ktid')) ? \GetOperations::getVarValue('ktid') : '';
    $requestObj->datum = (\GetOperations::isDefined('datum')) ? \GetOperations::getVarValue('datum') : '';

    return $requestObj;
  }
}