1 | <?php declare(strict_types=1); |
||
7 | class BashCommand implements ProcessCommand |
||
8 | { |
||
9 | /** |
||
10 | * @var Script |
||
11 | */ |
||
12 | private $script; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $warning; |
||
18 | |||
19 | /** |
||
20 | * @param Script $script |
||
21 | * @param string $warning |
||
22 | */ |
||
23 | public function __construct(Script $script, string $warning = null) |
||
28 | |||
29 | /** |
||
30 | * @return Script |
||
31 | */ |
||
32 | public function getScript(): Script |
||
36 | |||
37 | /** |
||
38 | * @return int |
||
39 | */ |
||
40 | public function getLineNumber(): int |
||
44 | |||
45 | /** |
||
46 | * @return boolean |
||
47 | */ |
||
48 | public function isIgnoreError(): bool |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function isTTy(): bool |
||
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | public function hasWarning(): bool |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getWarning(): string |
||
76 | } |
||
77 |