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

BashCommand::getLineNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
     * @var string[]
16
     */
17
    private $warnings;
18
19
    /**
20
     * @param Script $script
21
     * @param string ...$warnings
22
     */
23
    public function __construct(Script $script, string ...$warnings)
24
    {
25
        $this->script = $script;
26
        $this->warnings = $warnings;
27
    }
28
29
    /**
30
     * @return Script
31
     */
32
    public function getScript(): Script
33
    {
34
        return $this->script;
35
    }
36
37
    /**
38
     * @return int
39
     */
40
    public function getLineNumber(): int
41
    {
42
        return 1;
43
    }
44
45
    /**
46
     * @return boolean
47
     */
48
    public function isIgnoreError(): bool
49
    {
50
        return false;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function isTTy(): bool
57
    {
58
        return false;
59
    }
60
}
61