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

namespace Kufer\KuferTools\Oeffentlich\AccessDenied;

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

  protected function getViewModel()
  {
    return new AccessDeniedViewModel();
  }

  public function setRequestHeader()
  {
    http_response_code(401);
    parent::setRequestHeader();
  }
}