protected function createSplFileInfoInstance(string $directory, string $filename): SplFileInfo
    {
        return new SplFileInfo($directory.DIRECTORY_SEPARATOR.$filename, $directory, $filename);
    }
protected function createSplFileInfoInstance(string $directory, string $filename): SplFileInfo
    {
        return new SplFileInfo($directory.DIRECTORY_SEPARATOR.$filename, $directory, $filename);
    }
protected function createSplFileInfoInstance ( string $ directory , string $ filename ) : SplFileInfo { return new SplFileInfo ( $ directory . DIRECTORY_SEPARATOR . $ filename , $ directory , $ filename ) ; }
Create instance of SplFileInfo.

@param string $path

@return SplFileInfo
Create instance of SplFileInfo .