1 | <?php declare(strict_types=1); |
||
14 | class CommandBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var Command[] |
||
18 | */ |
||
19 | private $allCommands = []; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | private $ignoreError; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $tty; |
||
30 | |||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $template; |
||
35 | |||
36 | /** |
||
37 | * @var bool |
||
38 | */ |
||
39 | private $deferred; |
||
40 | |||
41 | public function __construct() |
||
45 | |||
46 | private function reset(): void |
||
53 | |||
54 | public function addProcessCommand(string $shellCommand, int $startLine, string $workingDirectory): CommandBuilder |
||
78 | |||
79 | /** |
||
80 | * @return $this |
||
81 | */ |
||
82 | public function addTemplateCommand( |
||
99 | |||
100 | public function addWaitCommand(int $lineNumber): CommandBuilder |
||
107 | |||
108 | public function setIgnoreError(bool $set = true): CommandBuilder |
||
114 | |||
115 | public function setTty(bool $set = true): CommandBuilder |
||
121 | |||
122 | public function setDeferredExecution(bool $set = true): CommandBuilder |
||
128 | |||
129 | public function scopeEmpty(callable $fkt): CommandBuilder |
||
143 | |||
144 | /** |
||
145 | * @return Command[] |
||
146 | */ |
||
147 | public function getAll(): array |
||
155 | } |
||
156 |