| 1 | <?php declare(strict_types=1); |
||
| 9 | class ProcessCommand implements Command |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $shellCommand; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | private $ignoreError; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $lineNumber; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | private $tty; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Command constructor. |
||
| 33 | * @param string $shellCommand |
||
| 34 | * @param int $lineNumber |
||
| 35 | * @param bool $ignoreError |
||
| 36 | * @param bool $tty |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getShellCommand(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return boolean |
||
| 60 | */ |
||
| 61 | public function isIgnoreError(): bool |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return int |
||
| 68 | */ |
||
| 69 | public function getLineNumber(): int |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return bool |
||
| 76 | */ |
||
| 77 | public function isTTy(): bool |
||
| 81 | } |
||
| 82 |