public function read($filename)
    {
        $meta = new ValueBag();

        try {
            $zip = new \ZipArchive();
            $result = $zip->open($filename);

            if ($result === true) {
                if ($zip->comment) {
                    $meta->set('zip.comment', new MetaValue($zip->comment));
                }

                if ($zip->numFiles) {
                    $meta->set('zip.numFiles', new MetaValue($zip->numFiles));
                }

                if ($zip->status) {
                    $meta->set('zip.status', new MetaValue($zip->status));
                }

                $zip->close();
            }
        } catch (\Exception $e) {
        }

        return $meta;
    }
public function read($filename)
    {
        $meta = new ValueBag();

        try {
            $zip = new \ZipArchive();
            $result = $zip->open($filename);

            if ($result === true) {
                if ($zip->comment) {
                    $meta->set('zip.comment', new MetaValue($zip->comment));
                }

                if ($zip->numFiles) {
                    $meta->set('zip.numFiles', new MetaValue($zip->numFiles));
                }

                if ($zip->status) {
                    $meta->set('zip.status', new MetaValue($zip->status));
                }

                $zip->close();
            }
        } catch (\Exception $e) {
        }

        return $meta;
    }
{@inheritdoc}