src/Utilities/ClassMethodHandler.php
public function call($params = null)
    {
        $method = $this->method;

        if (!empty($this->constructor_arguments)) {
            $instance = new $this->class($this->constructor_arguments);
        } else {
            $instance = new $this->class();
        }
        if (!is_null($params)) {
            return $instance->$method($params);
        }
        return $instance->$method();
    }
public function call($params = null)
    {
        $method = $this->method;

        if (!empty($this->constructor_arguments)) {
            $instance = new $this->class($this->constructor_arguments);
        } else {
            $instance = new $this->class();
        }
        if (!is_null($params)) {
            return $instance->$method($params);
        }
        return $instance->$method();
    }
public function call ( $ params = null ) { $ method = $ this -> method ; if ( ! empty ( $ this -> constructor_arguments ) ) { $ instance = new $ this -> class ( $ this -> constructor_arguments ) ; } else { $ instance = new $ this -> class ( ) ; } if ( ! is_null ( $ params ) ) { return $ instance -> $ method ( $ params ) ; } return $ instance -> $ method ( ) ; }
Calls the requested class and method name passing in the optional arguments.
@param mixed $params Optional parameters to pass to the class method.
@return void
Calls the requested class and method name passing in the optional arguments .