4 * This file is part of Zippy.
6 * (c) Alchemy <info@alchemy.fr>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Alchemy\Zippy\Adapter;
14 use Alchemy\Zippy\Parser\ParserInterface;
15 use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface;
17 interface BinaryAdapterInterface
20 * Gets the output parser
22 * @return ParserInterface
24 public function getParser();
29 * @param ParserInterface $parser The parser to use
31 * @return AbstractBinaryAdapter
33 public function setParser(ParserInterface $parser);
36 * Returns the inflator process builder
38 * @return ProcessBuilderFactoryInterface
40 public function getInflator();
43 * Sets the inflator process builder
45 * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
47 * @return AbstractBinaryAdapter
49 public function setInflator(ProcessBuilderFactoryInterface $processBuilder);
52 * Returns the deflator process builder
54 * @return ProcessBuilderFactoryInterface
56 public function getDeflator();
59 * Sets the deflator process builder
61 * @param ProcessBuilderFactoryInterface $processBuilder The parser to use
63 * @return AbstractBinaryAdapter
65 public function setDeflator(ProcessBuilderFactoryInterface $processBuilder);
68 * Returns the inflator binary version
72 public function getInflatorVersion();
75 * Returns the deflator binary version
79 public function getDeflatorVersion();
82 * Gets the inflator adapter binary name
86 public static function getDefaultInflatorBinaryName();
89 * Gets the deflator adapter binary name
93 public static function getDefaultDeflatorBinaryName();