src/Tar.php
protected function header2fileinfo($header)
    {
        $fileinfo = new FileInfo();
        $fileinfo->setPath($header['filename']);
        $fileinfo->setMode($header['perm']);
        $fileinfo->setUid($header['uid']);
        $fileinfo->setGid($header['gid']);
        $fileinfo->setSize($header['size']);
        $fileinfo->setMtime($header['mtime']);
        $fileinfo->setOwner($header['uname']);
        $fileinfo->setGroup($header['gname']);
        $fileinfo->setIsdir((bool) $header['typeflag']);

        return $fileinfo;
    }
protected function header2fileinfo($header)
    {
        $fileinfo = new FileInfo();
        $fileinfo->setPath($header['filename']);
        $fileinfo->setMode($header['perm']);
        $fileinfo->setUid($header['uid']);
        $fileinfo->setGid($header['gid']);
        $fileinfo->setSize($header['size']);
        $fileinfo->setMtime($header['mtime']);
        $fileinfo->setOwner($header['uname']);
        $fileinfo->setGroup($header['gname']);
        $fileinfo->setIsdir((bool) $header['typeflag']);

        return $fileinfo;
    }
protected function header2fileinfo ( $ header ) { $ fileinfo = new FileInfo ( ) ; $ fileinfo -> setPath ( $ header [ 'filename' ] ) ; $ fileinfo -> setMode ( $ header [ 'perm' ] ) ; $ fileinfo -> setUid ( $ header [ 'uid' ] ) ; $ fileinfo -> setGid ( $ header [ 'gid' ] ) ; $ fileinfo -> setSize ( $ header [ 'size' ] ) ; $ fileinfo -> setMtime ( $ header [ 'mtime' ] ) ; $ fileinfo -> setOwner ( $ header [ 'uname' ] ) ; $ fileinfo -> setGroup ( $ header [ 'gname' ] ) ; $ fileinfo -> setIsdir ( ( bool ) $ header [ 'typeflag' ] ) ; return $ fileinfo ; }
Creates a FileInfo object from the given parsed header

@param $header
@return FileInfo
Creates a FileInfo object from the given parsed header