ProcessBuilderInterface
last analyzed

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
getProcess() 0 1 ?
add() 0 1 ?
setWorkingDirectory() 0 1 ?
1
<?php
2
3
/*
4
 * This file is part of Zippy.
5
 *
6
 * (c) Alchemy <[email protected]>
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 Symfony\Component\Process\Process;
15
16
interface ProcessBuilderInterface
17
{
18
    /**
19
     * Creates a Process instance and returns it
20
     *
21
     * @return Process
22
     */
23
    public function getProcess();
24
25
    /**
26
     * Adds an argument to the command string
27
     *
28
     * @param string $argument
29
     *
30
     * @return ProcessBuilder
31
     */
32
    public function add($argument);
33
34
    /**
35
     * Sets the working directory
36
     *
37
     * @param string $directory
38
     *
39
     * @return ProcessBuilder
40
     */
41
    public function setWorkingDirectory($directory);
42
}
43