Completed
Pull Request — master (#82)
by Jan Philipp
01:36
created

BashCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getScript() 0 4 1
A getLineNumber() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Psh\ScriptRuntime;
4
5
use Shopware\Psh\Listing\Script;
6
7
class BashCommand implements Command
8
{
9
    /**
10
     * @var Script
11
     */
12
    private $script;
13
14
    /**
15
     * @param Script $script
16
     */
17
    public function __construct(Script $script)
18
    {
19
        $this->script = $script;
20
    }
21
22
    /**
23
     * @return Script
24
     */
25
    public function getScript(): Script
26
    {
27
        return $this->script;
28
    }
29
30
    /**
31
     * @return int
32
     */
33
    public function getLineNumber(): int
34
    {
35
        return 1;
36
    }
37
}
38