protected function getActionArgument($validActions = [])
    {
        $action = strtolower($this->argument('action'));

        if (in_array($action, $validActions) === false) {
            throw new \RuntimeException("The \"{$action}\" option does not exist.");
        }

        return $action;
    }
protected function getActionArgument($validActions = [])
    {
        $action = strtolower($this->argument('action'));

        if (in_array($action, $validActions) === false) {
            throw new \RuntimeException("The \"{$action}\" option does not exist.");
        }

        return $action;
    }
protected function getActionArgument ( $ validActions = [ ] ) { $ action = strtolower ( $ this -> argument ( 'action' ) ) ; if ( in_array ( $ action , $ validActions ) === false ) { throw new \ RuntimeException ( "The \"{$action}\" option does not exist." ) ; } return $ action ; }
Get action argument.

@param  array $validActions

@return array
Get action argument .