c3024a1e962c7a8ebc27f2b723a7bc2d671c6350
[yaffs-website] / vendor / alchemy / zippy / src / Parser / ParserInterface.php
1 <?php
2
3 /*
4  * This file is part of Zippy.
5  *
6  * (c) Alchemy <info@alchemy.fr>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Alchemy\Zippy\Parser;
13
14 use Alchemy\Zippy\Exception\RuntimeException;
15
16 interface ParserInterface
17 {
18     /**
19      * Parses a file listing
20      *
21      * @param string $output The string to parse
22      *
23      * @return array An array of Member properties (location, mtime, size & is_dir)
24      *
25      * @throws RuntimeException In case the parsing process failed
26      */
27     public function parseFileListing($output);
28
29     /**
30      * Parses the inflator binary version
31      *
32      * @param string $output
33      *
34      * @return string The version
35      */
36     public function parseInflatorVersion($output);
37
38     /**
39      * Parses the deflator binary version
40      *
41      * @param string $output
42      *
43      * @return string The version
44      */
45     public function parseDeflatorVersion($output);
46 }