Runner   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A run() 0 4 1
1
<?php
2
3
namespace Consigliere\Components\Process;
4
5
use Consigliere\Components\Contracts\RunableInterface;
6
use Consigliere\Components\Repository;
7
8
class Runner implements RunableInterface
9
{
10
    /**
11
     * The component instance.
12
     *
13
     * @var \Consigliere\Components\Repository
14
     */
15
    protected $component;
16
17
    /**
18
     * The constructor.
19
     *
20
     * @param \Consigliere\Components\Repository $component
21
     */
22
    public function __construct(Repository $component)
23
    {
24
        $this->component = $component;
25
    }
26
27
28
    /**
29
     * Run the given command.
30
     *
31
     * @param string $command
32
     */
33
    public function run($command)
34
    {
35
        passthru($command);
36
    }
37
}
38