class FunctionInvoker (View source)

Call a function silently and throws an exception if the function result corresponds to the error result.

Constants

DEFAULT_ERROR_RESULT

DEFAULT_EXCEPTION_CLASS

Properties

$errorResult
$exceptionClass

Methods

static mixed
__callstatic(string $functionName, array $arguments)

No description

mixed
__call(string $functionName, array $arguments)

No description

Details

static mixed __callstatic(string $functionName, array $arguments)

Parameters

string $functionName Function to call
array $arguments Function arguments

Return Value

mixed

Exceptions

Exception if invoked function returns the error result.

mixed __call(string $functionName, array $arguments)

Parameters

string $functionName Function to call
array $arguments Function arguments

Return Value

mixed Function invocation result

Exceptions

Exception if invoked function returns the error result.