ArchiveReader.php
562 Bytes
<?php
/**
* Created by PhpStorm.
* User: Tsurkanov
* Date: 03.11.2015
* Time: 14:48
*/
namespace common\components\archives;
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;
}
}