| 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|null |
||
| 16 | */ |
||
| 17 | private $warning; |
||
| 18 | |||
| 19 | public function __construct(Script $script, ?string $warning = null) |
||
| 20 | { |
||
| 21 | $this->script = $script; |
||
| 22 | $this->warning = $warning; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getScript(): Script |
||
| 29 | |||
| 30 | public function getLineNumber(): int |
||
| 34 | |||
| 35 | public function isIgnoreError(): bool |
||
| 39 | |||
| 40 | public function isTTy(): bool |
||
| 44 | |||
| 45 | public function hasWarning(): bool |
||
| 49 | |||
| 50 | public function getWarning(): ?string |
||
| 54 | |||
| 55 | public function getWorkingDirectory(): string |
||
| 59 | } |
||
| 60 |