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

namespace Kufer\Web\KuferTools\Veranstalter\KursUebersicht\KursDetails\Feedback;

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

  protected function getNewRequestObj()
  {
    return new SendFeedbackRequest();
  }

  protected function getRequestObj()
  {
    $requestObj = parent::getRequestObj();
    $requestObj->knr = \RequestOperations::getVarValue('knr');

    
    $action = \GetOperations::getVarValue('action');

    return $this->handleXsrf($requestObj, $action, $requestObj->knr);
  }
}