for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ZipFactory.php
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec <[email protected]>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
* @date 23.04.16
*/
declare(strict_types = 1);
namespace IPub\Flysystem\Factories\Adapters;
use Nette\Utils;
use League\Flysystem\ZipArchive;
* ZIP compress adapter filesystem factory
class ZipFactory
{
* @param Utils\ArrayHash $parameters
* @return ZipArchive\ZipArchiveAdapter
public static function create(Utils\ArrayHash $parameters) : ZipArchive\ZipArchiveAdapter
return new ZipArchive\ZipArchiveAdapter($parameters->location, $parameters->archive, $parameters->prefix);
}