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

BashCommand::getScript()   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 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