Completed
Pull Request — master (#531)
by
unknown
04:30 queued 01:22
created

ProcessExecutor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCommand() 0 4 1
1
<?php
2
3
namespace Robo\Common;
4
5
use Robo\Robo;
6
use Robo\Task\BaseTask;
7
8
class ProcessExecutor extends BaseTask
9
{
10
    use ExecTrait;
11
12
    /** @var string */
13
    protected $command;
14
15
    public function __construct($command)
16
    {
17
        $this->command = $command;
18
        $this->logger = Robo::logger();
19
    }
20
21
    public function getCommand()
22
    {
23
        return $this->command;
24
    }
25
}
26