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

namespace Kufer\KuferTools\Ausgaben\SammelEMail\AnTeilnehmer;

abstract class SammelEMailController extends \Kufer\KuferTools\Basis\Controller\ToolController
{
  protected function getNewRequestObj()
  {
    return new SammelEMailRequest();
  }

  protected function getRequestObj()
  {
    $requestObj = $this->getNewRequestObj();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->belegungNummern = \RequestOperations::getVarValue('belegungen', array());

    return $requestObj;
  }

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