protected function getView(
        FactoryContract $factory,
        EngineContract $engine,
        string $view,
        array $fileInfo,
        $data = []
    ): View {
        return new View($factory, $engine, $view, $fileInfo, $data);
    }
protected function getView(
        FactoryContract $factory,
        EngineContract $engine,
        string $view,
        array $fileInfo,
        $data = []
    ): View {
        return new View($factory, $engine, $view, $fileInfo, $data);
    }
protected function getView ( FactoryContract $ factory , EngineContract $ engine , string $ view , array $ fileInfo , $ data = [ ] ) : View { return new View ( $ factory , $ engine , $ view , $ fileInfo , $ data ) ; }
Get the right view object.

@param \Viserio\Component\Contract\View\Factory            $factory
@param \Viserio\Component\Contract\View\Engine             $engine
@param string                                              $view
@param array                                               $fileInfo
@param array|\Viserio\Component\Contract\Support\Arrayable $data

@return \Viserio\Component\View\View
Get the right view object .