Completed
Pull Request — master (#147)
by
unknown
07:37
created

ZippyProcess::add()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Alchemy\Zippy\ProcessBuilder;
4
5
use Symfony\Component\Process\Process;
6
7
class ZippyProcess extends Process
8
{
9
    /**
10
     * @param string $argument The argument to append to the commandline string
11
     * @return $this
12
     */
13
    public function add($argument) {
14
        $commandline = explode(' ', $this->getCommandLine());
15
        $commandline[] = $argument;
16
        $this->setCommandLine($commandline);
17
        return $this;
18
    }
19
}
20