Completed
Pull Request — master (#531)
by
unknown
09:16
created

ProcessExecutor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 15
rs 10
c 1
b 0
f 0

1 Method

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