Runner::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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