@@ -36,8 +36,8 @@ abstract class Controller extends AbstractCommand implements ControllerInterface
3636 /** @var string */
3737 private $ delimiter = ': ' ; // '/' ':'
3838
39- /** @var bool */
40- private $ standAlone = false ;
39+ /** @var bool Execution alone */
40+ private $ executionAlone = false ;
4141
4242 /** @var string */
4343 private $ defaultAction = 'help ' ;
@@ -228,7 +228,7 @@ protected function beforeShowCommandList()
228228 {
229229 // do something ...
230230 }
231-
231+
232232 /**
233233 * show command list of the controller class
234234 * @throws \ReflectionException
@@ -284,7 +284,7 @@ final public function showCommandList()
284284
285285 $ script = $ this ->getScriptName ();
286286
287- if ($ this ->standAlone ) {
287+ if ($ this ->executionAlone ) {
288288 $ name = $ sName . ' ' ;
289289 $ usage = "$ script <info>{command}</info> [arguments ...] [options ...] " ;
290290 } else {
@@ -305,7 +305,7 @@ final public function showCommandList()
305305
306306 $ this ->write (sprintf (
307307 "More information about a command, please use: <cyan> $ script $ name{command} -h</cyan> " ,
308- $ this ->standAlone ? ' ' . $ name : ''
308+ $ this ->executionAlone ? ' ' . $ name : ''
309309 ));
310310 $ this ->output ->flush ();
311311 }
@@ -403,7 +403,7 @@ public function getAction(): string
403403 * @param string $action
404404 * @return $this
405405 */
406- public function setAction (string $ action )
406+ public function setAction (string $ action ): self
407407 {
408408 if ($ action ) {
409409 $ this ->action = FormatUtil::camelCase ($ action );
@@ -463,17 +463,17 @@ public function setNotFoundCallback(string $notFoundCallback)
463463 /**
464464 * @return bool
465465 */
466- public function isStandAlone (): bool
466+ public function isExecutionAlone (): bool
467467 {
468- return $ this ->standAlone ;
468+ return $ this ->executionAlone ;
469469 }
470470
471471 /**
472- * @param bool $standAlone
472+ * @param bool $executionAlone
473473 */
474- public function setStandAlone ( $ standAlone = true )
474+ public function setExecutionAlone ( $ executionAlone = true )
475475 {
476- $ this ->standAlone = (bool )$ standAlone ;
476+ $ this ->executionAlone = (bool )$ executionAlone ;
477477 }
478478
479479 /**
0 commit comments