@@ -25,7 +25,7 @@ abstract class AbstractCmdBuilder
2525 /**
2626 * @var string
2727 */
28- protected string $ command = '' ;
28+ protected string $ cmdline = '' ;
2929
3030 /**
3131 * @var string
@@ -79,7 +79,7 @@ abstract class AbstractCmdBuilder
7979 */
8080 public function __construct (string $ command = '' , string $ workDir = '' )
8181 {
82- $ this ->command = $ command ;
82+ $ this ->cmdline = $ command ;
8383 $ this ->workDir = $ workDir ;
8484 }
8585
@@ -88,7 +88,7 @@ public function __construct(string $command = '', string $workDir = '')
8888 *
8989 * @return $this
9090 */
91- public function chDir (string $ workDir ): self
91+ public function chDir (string $ workDir ): static
9292 {
9393 return $ this ->changeDir ($ workDir );
9494 }
@@ -98,7 +98,7 @@ public function chDir(string $workDir): self
9898 *
9999 * @return $this
100100 */
101- public function changeDir (string $ workDir ): self
101+ public function changeDir (string $ workDir ): static
102102 {
103103 $ this ->workDir = $ workDir ;
104104 return $ this ;
@@ -119,7 +119,7 @@ public function runAndPrint(): void
119119 *
120120 * @return $this
121121 */
122- abstract public function run (bool $ printOutput = false ): self ;
122+ abstract public function run (bool $ printOutput = false ): static ;
123123
124124 /**************************************************************************
125125 * helper methods
@@ -206,22 +206,22 @@ protected function printMessage(string $msg, string $scene): void
206206 *************************************************************************/
207207
208208 /**
209- * @param string $command
209+ * @param string $cmdline
210210 *
211211 * @return $this
212212 */
213- public function setCommand (string $ command ): self
213+ public function setCmdline (string $ cmdline ): static
214214 {
215- $ this ->command = $ command ;
215+ $ this ->cmdline = $ cmdline ;
216216 return $ this ;
217217 }
218218
219219 /**
220220 * @return string
221221 */
222- public function getCommand (): string
222+ public function getCmdline (): string
223223 {
224- return $ this ->command ;
224+ return $ this ->cmdline ;
225225 }
226226
227227 /**
@@ -237,7 +237,7 @@ public function getWorkDir(): string
237237 *
238238 * @return $this
239239 */
240- public function setWorkDir (string $ workDir ): self
240+ public function setWorkDir (string $ workDir ): static
241241 {
242242 $ this ->workDir = $ workDir ;
243243 return $ this ;
@@ -293,7 +293,7 @@ public function getResult(): array
293293 *
294294 * @return $this
295295 */
296- public function setPrintCmd (bool $ printCmd ): self
296+ public function setPrintCmd (bool $ printCmd ): static
297297 {
298298 $ this ->printCmd = $ printCmd ;
299299 return $ this ;
@@ -304,7 +304,7 @@ public function setPrintCmd(bool $printCmd): self
304304 *
305305 * @return $this
306306 */
307- public function setPrintOutput (bool $ printOutput ): self
307+ public function setPrintOutput (bool $ printOutput ): static
308308 {
309309 $ this ->printOutput = $ printOutput ;
310310 return $ this ;
@@ -323,7 +323,7 @@ public function isIgnoreError(): bool
323323 *
324324 * @return $this
325325 */
326- public function setIgnoreError (bool $ ignoreError ): self
326+ public function setIgnoreError (bool $ ignoreError ): static
327327 {
328328 $ this ->ignoreError = $ ignoreError ;
329329 return $ this ;
@@ -334,7 +334,7 @@ public function setIgnoreError(bool $ignoreError): self
334334 *
335335 * @return $this
336336 */
337- public function setDryRun (bool $ dryRun ): self
337+ public function setDryRun (bool $ dryRun ): static
338338 {
339339 $ this ->dryRun = $ dryRun ;
340340 return $ this ;
0 commit comments