Completed
Pull Request — master (#531)
by
unknown
03:14
created

ProcessExecutor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCommand() 0 3 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
  use ExecTrait;
10
11
  /** @var string */
12
  protected $command;
13
14
  public function __construct($command) {
15
      $this->command = $command;
16
      $this->logger = Robo::logger();
17
  }
18
19
  public function getCommand() {
20
      return $this->command;
21
  }
22
}
23