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

ZippyProcess   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A add() 0 6 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