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

namespace Kufer\Web\KuferTools\Basis\Raumbelegung\Raumdetails\Detailsreiter\RaumDetails;

abstract class ReiterRaumDetailsPresenter extends \Kufer\Web\KuferTools\Basis\Presenter\Presenter
{
  abstract protected function getHyperlink4Columns($pColumns, $pDataModul);

  protected function getViewModel()
  {
    $viewModel = new ReiterRaumDetailsViewModel();
    $viewModel->toolSection = $this->useCaseResponse->toolSection;
    $viewModel->toolSettings = $this->useCaseResponse->toolSettings;
    $viewModel->columns = $this->getHyperlink4Columns($this->useCaseResponse->columns, $this->useCaseResponse->raum);
    
    $viewModel->raum = $this->useCaseResponse->raum;

    return $viewModel;
  }
}