isIn()) { return $this->home($response, $view); } return $this->login($response, $view); } public function construccion(ServerRequestInterface $request, ResponseInterface $response, View $view): ResponseInterface { return $view->render($response, 'construccion'); } protected function home(ResponseInterface $response, View $view): ResponseInterface { return $view->render($response, 'home'); } protected function login(ResponseInterface $response, View $view): ResponseInterface { return $view->render($response, 'guest'); } }