Version 1
[yaffs-website] / vendor / alchemy / zippy / src / Parser / ParserInterface.php
diff --git a/vendor/alchemy/zippy/src/Parser/ParserInterface.php b/vendor/alchemy/zippy/src/Parser/ParserInterface.php
new file mode 100644 (file)
index 0000000..c3024a1
--- /dev/null
@@ -0,0 +1,46 @@
+<?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\Parser;
+
+use Alchemy\Zippy\Exception\RuntimeException;
+
+interface ParserInterface
+{
+    /**
+     * Parses a file listing
+     *
+     * @param string $output The string to parse
+     *
+     * @return array An array of Member properties (location, mtime, size & is_dir)
+     *
+     * @throws RuntimeException In case the parsing process failed
+     */
+    public function parseFileListing($output);
+
+    /**
+     * Parses the inflator binary version
+     *
+     * @param string $output
+     *
+     * @return string The version
+     */
+    public function parseInflatorVersion($output);
+
+    /**
+     * Parses the deflator binary version
+     *
+     * @param string $output
+     *
+     * @return string The version
+     */
+    public function parseDeflatorVersion($output);
+}