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

BashCommand   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 47
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getScript() 0 4 1
A getLineNumber() 0 4 1
A isIgnoreError() 0 4 1
A isTTy() 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 ProcessCommand
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
    /**
39
     * @return boolean
40
     */
41
    public function isIgnoreError(): bool
42
    {
43
        return false;
44
    }
45
46
    /**
47
     * @return bool
48
     */
49
    public function isTTy(): bool
50
    {
51
        return false;
52
    }
53
}
54