Version 1
[yaffs-website] / vendor / alchemy / zippy / src / ProcessBuilder / ProcessBuilderFactoryInterface.php
diff --git a/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactoryInterface.php b/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactoryInterface.php
new file mode 100644 (file)
index 0000000..a93e5a8
--- /dev/null
@@ -0,0 +1,45 @@
+<?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\ProcessBuilder;
+
+use Alchemy\Zippy\Exception\InvalidArgumentException;
+use Symfony\Component\Process\ProcessBuilder;
+
+interface ProcessBuilderFactoryInterface
+{
+    /**
+     * Returns a new instance of Symfony ProcessBuilder
+     *
+     * @return ProcessBuilder
+     *
+     * @throws InvalidArgumentException
+     */
+    public function create();
+
+    /**
+     * Returns the binary path
+     *
+     * @return string
+     */
+    public function getBinary();
+
+    /**
+     * Sets the binary path
+     *
+     * @param string $binary A binary path
+     *
+     * @return ProcessBuilderFactoryInterface
+     *
+     * @throws InvalidArgumentException In case binary is not executable
+     */
+    public function useBinary($binary);
+}