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

namespace Kufer\Web\KuferTools\Mitarbeiter\AdressInfo\NewAdress;

class NewAdressPresenter extends \Kufer\Web\KuferTools\Basis\Presenter\Presenter
{
  protected function getView()
  {
    return new NewAdressView($this->getViewModel());
  }

  protected function getViewModel()
  {
    $viewModel = new NewAdressViewModel();
    $viewModel->toolSection = $this->useCaseResponse->toolSection;
    $viewModel->toolSettings = $this->useCaseResponse->toolSettings;
    $viewModel->columns = $this->useCaseResponse->columns;
    $viewModel->adress = $this->useCaseResponse->adress;

    return $viewModel;
  }
}