lithium\analysis\Inspector::invokeMethod()

public static method
This method is deprecated.

Calls a method on this object with the given parameters. Provides an OO wrapper for forward_static_call_array().

Parameters

  • string $method

    Name of the method to call.

  • array $params

    Parameter list to use when calling $method.

Returns

mixed

Returns the result of the method call.

Source

	public static function invokeMethod($method, $params = []) {
		$message  = '`' . __METHOD__ . '()` has been deprecated.';
		trigger_error($message, E_USER_DEPRECATED);

		return forward_static_call_array([get_called_class(), $method], $params);
	}