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

namespace Kufer\KuferTools\Mitarbeiter\AdressInfo\NewAdress;

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

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

    return $viewModel;
  }
}