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

namespace Kufer\KuferTools\Teilnehmer\Visitenkarten\VisitenkartenUebersicht\DialogLoescheVisitenkarte;

class DialogLoescheVisitenkarteController extends \Kufer\KuferTools\Basis\Controller\ToolController
{
  protected function getUseCase()
  {
    return new DialogLoescheVisitenkarteUseCase($this->getRequestObj());
  }

  protected function getToolId()
  {
    return DialogLoescheVisitenkarteUseCase::getToolId();
  }

  public function getPresenter($pUseCaseResponse)
  {
    return new DialogLoescheVisitenkartePresenter($pUseCaseResponse);
  }

  protected function getRequestObj()
  {
    $obj = new DialogLoescheVisitenkarteRequest();
    $obj->visitenkarteId = \GetOperations::getVarValue('karteID');

    return $obj;
  }
}