@@ -25,7 +25,7 @@ abstract class AbstractCmdBuilder
25
25
/**
26
26
* @var string
27
27
*/
28
- protected string $ command = '' ;
28
+ protected string $ cmdline = '' ;
29
29
30
30
/**
31
31
* @var string
@@ -79,7 +79,7 @@ abstract class AbstractCmdBuilder
79
79
*/
80
80
public function __construct (string $ command = '' , string $ workDir = '' )
81
81
{
82
- $ this ->command = $ command ;
82
+ $ this ->cmdline = $ command ;
83
83
$ this ->workDir = $ workDir ;
84
84
}
85
85
@@ -88,7 +88,7 @@ public function __construct(string $command = '', string $workDir = '')
88
88
*
89
89
* @return $this
90
90
*/
91
- public function chDir (string $ workDir ): self
91
+ public function chDir (string $ workDir ): static
92
92
{
93
93
return $ this ->changeDir ($ workDir );
94
94
}
@@ -98,7 +98,7 @@ public function chDir(string $workDir): self
98
98
*
99
99
* @return $this
100
100
*/
101
- public function changeDir (string $ workDir ): self
101
+ public function changeDir (string $ workDir ): static
102
102
{
103
103
$ this ->workDir = $ workDir ;
104
104
return $ this ;
@@ -119,7 +119,7 @@ public function runAndPrint(): void
119
119
*
120
120
* @return $this
121
121
*/
122
- abstract public function run (bool $ printOutput = false ): self ;
122
+ abstract public function run (bool $ printOutput = false ): static ;
123
123
124
124
/**************************************************************************
125
125
* helper methods
@@ -206,22 +206,22 @@ protected function printMessage(string $msg, string $scene): void
206
206
*************************************************************************/
207
207
208
208
/**
209
- * @param string $command
209
+ * @param string $cmdline
210
210
*
211
211
* @return $this
212
212
*/
213
- public function setCommand (string $ command ): self
213
+ public function setCmdline (string $ cmdline ): static
214
214
{
215
- $ this ->command = $ command ;
215
+ $ this ->cmdline = $ cmdline ;
216
216
return $ this ;
217
217
}
218
218
219
219
/**
220
220
* @return string
221
221
*/
222
- public function getCommand (): string
222
+ public function getCmdline (): string
223
223
{
224
- return $ this ->command ;
224
+ return $ this ->cmdline ;
225
225
}
226
226
227
227
/**
@@ -237,7 +237,7 @@ public function getWorkDir(): string
237
237
*
238
238
* @return $this
239
239
*/
240
- public function setWorkDir (string $ workDir ): self
240
+ public function setWorkDir (string $ workDir ): static
241
241
{
242
242
$ this ->workDir = $ workDir ;
243
243
return $ this ;
@@ -293,7 +293,7 @@ public function getResult(): array
293
293
*
294
294
* @return $this
295
295
*/
296
- public function setPrintCmd (bool $ printCmd ): self
296
+ public function setPrintCmd (bool $ printCmd ): static
297
297
{
298
298
$ this ->printCmd = $ printCmd ;
299
299
return $ this ;
@@ -304,7 +304,7 @@ public function setPrintCmd(bool $printCmd): self
304
304
*
305
305
* @return $this
306
306
*/
307
- public function setPrintOutput (bool $ printOutput ): self
307
+ public function setPrintOutput (bool $ printOutput ): static
308
308
{
309
309
$ this ->printOutput = $ printOutput ;
310
310
return $ this ;
@@ -323,7 +323,7 @@ public function isIgnoreError(): bool
323
323
*
324
324
* @return $this
325
325
*/
326
- public function setIgnoreError (bool $ ignoreError ): self
326
+ public function setIgnoreError (bool $ ignoreError ): static
327
327
{
328
328
$ this ->ignoreError = $ ignoreError ;
329
329
return $ this ;
@@ -334,7 +334,7 @@ public function setIgnoreError(bool $ignoreError): self
334
334
*
335
335
* @return $this
336
336
*/
337
- public function setDryRun (bool $ dryRun ): self
337
+ public function setDryRun (bool $ dryRun ): static
338
338
{
339
339
$ this ->dryRun = $ dryRun ;
340
340
return $ this ;
0 commit comments