original_string: protected function initAction()
      {
          $this->action = $this->argument('action');
  
          if (! in_array($this->action, ['start', 'stop', 'restart', 'reload', 'infos'], true)) {
              $this->error(
                  "Invalid argument '{$this->action}'. Expected 'start', 'stop', 'restart', 'reload' or 'infos'."
              );
  
              return;
          }
      }
code: protected function initAction()
      {
          $this->action = $this->argument('action');
  
          if (! in_array($this->action, ['start', 'stop', 'restart', 'reload', 'infos'], true)) {
              $this->error(
                  "Invalid argument '{$this->action}'. Expected 'start', 'stop', 'restart', 'reload' or 'infos'."
              );
  
              return;
          }
      }
code_tokens: protected function initAction ( ) { $ this -> action = $ this -> argument ( 'action' ) ; if ( ! in_array ( $ this -> action , [ 'start' , 'stop' , 'restart' , 'reload' , 'infos' ] , true ) ) { $ this -> error ( "Invalid argument '{$this->action}'. Expected 'start', 'stop', 'restart', 'reload' or 'infos'." ) ; return ; } }
docstring: Initialize command action.
docstring_tokens: Initialize command action .