| 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 | * @var bool |
||
| 32 | */ |
||
| 33 | private $deferred; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $shellCommand |
||
| 37 | * @param int $lineNumber |
||
| 38 | * @param bool $ignoreError |
||
| 39 | * @param bool $tty |
||
| 40 | * @param bool $deferred |
||
| 41 | */ |
||
| 42 | public function __construct( |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getShellCommand(): string |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return boolean |
||
| 66 | */ |
||
| 67 | public function isIgnoreError(): bool |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return int |
||
| 74 | */ |
||
| 75 | public function getLineNumber(): int |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return bool |
||
| 82 | */ |
||
| 83 | public function isTTy(): bool |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return bool |
||
| 90 | */ |
||
| 91 | public function isDeferred(): bool |
||
| 95 | } |
||
| 96 |