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

namespace Kufer\Web\KuferTools\Teilnehmer\BayerischerApothekertagStudenten\SaveAnmeldeFormular;

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

  protected function getViewModel()
  {
    $viewModel = new SaveAnmeldeFormularViewModel();
    $viewModel->statusCode = $this->useCaseResponse->statusCode;
    $viewModel->wrongFields = $this->useCaseResponse->wrongFields;

    return $viewModel;
  }
}