Version 1
[yaffs-website] / vendor / alchemy / zippy / src / Adapter / BinaryAdapterInterface.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\Adapter;
13
14 use Alchemy\Zippy\Parser\ParserInterface;
15 use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface;
16
17 interface BinaryAdapterInterface
18 {
19     /**
20      * Gets the output parser
21      *
22      * @return ParserInterface
23      */
24     public function getParser();
25
26     /**
27      * Sets the parser
28      *
29      * @param ParserInterface $parser The parser to use
30      *
31      * @return AbstractBinaryAdapter
32      */
33     public function setParser(ParserInterface $parser);
34
35     /**
36      * Returns the inflator process builder
37      *
38      * @return ProcessBuilderFactoryInterface
39      */
40     public function getInflator();
41
42     /**
43      * Sets the inflator process builder
44      *
45      * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
46      *
47      * @return AbstractBinaryAdapter
48      */
49     public function setInflator(ProcessBuilderFactoryInterface $processBuilder);
50
51     /**
52      * Returns the deflator process builder
53      *
54      * @return ProcessBuilderFactoryInterface
55      */
56     public function getDeflator();
57
58     /**
59      * Sets the deflator process builder
60      *
61      * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
62      *
63      * @return AbstractBinaryAdapter
64      */
65     public function setDeflator(ProcessBuilderFactoryInterface $processBuilder);
66
67     /**
68      * Returns the inflator binary version
69      *
70      * @return string
71      */
72     public function getInflatorVersion();
73
74     /**
75      * Returns the deflator binary version
76      *
77      * @return string
78      */
79     public function getDeflatorVersion();
80
81     /**
82      * Gets the inflator adapter binary name
83      *
84      * @return array
85      */
86     public static function getDefaultInflatorBinaryName();
87
88     /**
89      * Gets the deflator adapter binary name
90      *
91      * @return array
92      */
93     public static function getDefaultDeflatorBinaryName();
94 }