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

namespace Kufer\KuferTools\Basis\Kursdetails\DetailsReiter\FeedbackBogen;

abstract class SendeFeedbackFragenController extends \Kufer\KuferTools\Basis\Controller\ToolController
{
  protected function getRequestObj()
  {
    $requestObj = new SendeFeedbackFragenRequest();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->isPressedButtonAbsenden = \PostOperations::isDefined('button_absenden');

    return $requestObj;
  }

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