Pop\Archive\Adapter\Tar::__construct PHP Метод

__construct() публичный Метод

Method to instantiate an archive adapter object
public __construct ( Archive $archive ) : Tar
$archive Pop\Archive\Archive
Результат Tar
    public function __construct(\Pop\Archive\Archive $archive)
    {
        if (stripos($archive->getExt(), 'bz') !== false) {
            $this->compression = 'bz';
        } else {
            if (stripos($archive->getExt(), 'gz') !== false) {
                $this->compression = 'gz';
            }
        }
        $this->path = $archive->getFullpath();
        $this->archive = new \Archive_Tar($this->path);
    }