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

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

class UrlaubeShowFilterPresenter extends \Kufer\Web\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());
  }
}