Version 1
[yaffs-website] / vendor / alchemy / zippy / src / Adapter / BinaryAdapterInterface.php
diff --git a/vendor/alchemy/zippy/src/Adapter/BinaryAdapterInterface.php b/vendor/alchemy/zippy/src/Adapter/BinaryAdapterInterface.php
new file mode 100644 (file)
index 0000000..4024c7a
--- /dev/null
@@ -0,0 +1,94 @@
+<?php
+
+/*
+ * This file is part of Zippy.
+ *
+ * (c) Alchemy <info@alchemy.fr>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Alchemy\Zippy\Adapter;
+
+use Alchemy\Zippy\Parser\ParserInterface;
+use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface;
+
+interface BinaryAdapterInterface
+{
+    /**
+     * Gets the output parser
+     *
+     * @return ParserInterface
+     */
+    public function getParser();
+
+    /**
+     * Sets the parser
+     *
+     * @param ParserInterface $parser The parser to use
+     *
+     * @return AbstractBinaryAdapter
+     */
+    public function setParser(ParserInterface $parser);
+
+    /**
+     * Returns the inflator process builder
+     *
+     * @return ProcessBuilderFactoryInterface
+     */
+    public function getInflator();
+
+    /**
+     * Sets the inflator process builder
+     *
+     * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
+     *
+     * @return AbstractBinaryAdapter
+     */
+    public function setInflator(ProcessBuilderFactoryInterface $processBuilder);
+
+    /**
+     * Returns the deflator process builder
+     *
+     * @return ProcessBuilderFactoryInterface
+     */
+    public function getDeflator();
+
+    /**
+     * Sets the deflator process builder
+     *
+     * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
+     *
+     * @return AbstractBinaryAdapter
+     */
+    public function setDeflator(ProcessBuilderFactoryInterface $processBuilder);
+
+    /**
+     * Returns the inflator binary version
+     *
+     * @return string
+     */
+    public function getInflatorVersion();
+
+    /**
+     * Returns the deflator binary version
+     *
+     * @return string
+     */
+    public function getDeflatorVersion();
+
+    /**
+     * Gets the inflator adapter binary name
+     *
+     * @return array
+     */
+    public static function getDefaultInflatorBinaryName();
+
+    /**
+     * Gets the deflator adapter binary name
+     *
+     * @return array
+     */
+    public static function getDefaultDeflatorBinaryName();
+}