<?php
namespace App\Archive\Uncompress; abstract class UncompressAbstractClass implements UncompressInterface, \App\Utils\BaseParser\NoParamsConstructorInterface { protected $location = ''; public function __construct() { } static function create() { return new static(); } public function open($location) { if (!is_file($location)) { throw new \Exception("Location is not file"); } $this->location = $location; return $this; } public function close() { } public function extractTo($pathDestination) { return $this; } public function test() { return $this; } }