ArchiveReader.php 568 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Tsurkanov
 * Date: 03.11.2015
 * Time: 14:48
 */
namespace common\components\archive_reader;
abstract class ArchiveReader
{

    protected $extracted_files = [];

    public abstract function open( $file, $password = '');

    public abstract function extractTo($destination);

    public static abstract function getExtension();

    public  function getExtractedFiles(){
        return $this->extracted_files;
    }
    public  function setExtractedFiles($name, $ext){
        $this->extracted_files[$name] = $ext;
    }

}