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

namespace Kufer\Web\KuferTools\Oeffentlich\NotFound;

class NotFoundController extends \Kufer\Web\KuferTools\Basis\Controller\Controller
{
  protected function getUseCase(): \Kufer\Web\KuferTools\Basis\UseCase\UseCase
  {
    if (!\SessionOperations::getCurrentWebToolsUser()->isEmpty()) {
      return new NotFoundLoggedInUseCase($this->getRequestObj());
    } else {
      return new NotFoundUseCase($this->getRequestObj());
    }
  }

  protected function getRequestObj()
  {
    return new class() {
    };
  }

  protected function getPresenter($pUseCaseResponse)
  {
    return new NotFoundPresenter($pUseCaseResponse);
  }
}