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

namespace Kufer\Web\KuferTools\Dozent\Urlaube\Uebersicht\Filter;

class UrlaubeShowFilterPresenter extends \Kufer\KuferTools\Basis\Presenter\Presenter
{
  protected function getViewModel()
  {
    $result = new UrlaubeShowFilterViewModel();
    $result->toolId = $this->useCaseResponse->toolId;
    $result->datumVon = $this->useCaseResponse->datumVon;
    $result->datumBis = $this->useCaseResponse->datumBis;
    $result->grund = $this->useCaseResponse->grund;

    return $result;
  }

  protected function getView()
  {
    return new UrlaubeShowFilterView($this->getViewModel());
  }
}