public function call($command, $action, ...$rest)
    {
        $class = $this->actions[$action];

        $instance = new $class($this->setting, $this->arg);

        if (method_exists($instance, $command)) {
            return call_user_func_array([$instance, $command], $rest);
        }
    }
public function call($command, $action, ...$rest)
    {
        $class = $this->actions[$action];

        $instance = new $class($this->setting, $this->arg);

        if (method_exists($instance, $command)) {
            return call_user_func_array([$instance, $command], $rest);
        }
    }
public function call ( $ command , $ action , ... $ rest ) { $ class = $ this -> actions [ $ action ] ; $ instance = new $ class ( $ this -> setting , $ this -> arg ) ; if ( method_exists ( $ instance , $ command ) ) { return call_user_func_array ( [ $ instance , $ command ] , $ rest ) ; } }
The call command

@param string $action
@param string $command
@param array $rest

@return mixed
The call command