Security update for Core, with self-updated composer
[yaffs-website] / vendor / alchemy / zippy / src / ProcessBuilder / ProcessBuilderFactoryInterface.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\ProcessBuilder;
13
14 use Alchemy\Zippy\Exception\InvalidArgumentException;
15 use Symfony\Component\Process\ProcessBuilder;
16
17 interface ProcessBuilderFactoryInterface
18 {
19     /**
20      * Returns a new instance of Symfony ProcessBuilder
21      *
22      * @return ProcessBuilder
23      *
24      * @throws InvalidArgumentException
25      */
26     public function create();
27
28     /**
29      * Returns the binary path
30      *
31      * @return string
32      */
33     public function getBinary();
34
35     /**
36      * Sets the binary path
37      *
38      * @param string $binary A binary path
39      *
40      * @return ProcessBuilderFactoryInterface
41      *
42      * @throws InvalidArgumentException In case binary is not executable
43      */
44     public function useBinary($binary);
45 }