Zend\Server\Reflection::reflectFunction
Perform function reflection to create dispatch signatures
Creates dispatch prototypes for a function. It returns a {@link Zend\Server\Reflection\FunctionReflection} object. If extra arguments should be passed to the dispatchable function, these may be provided as an array to $argv.
Signature
public function reflectFunction(string
$function,
[bool|array
$argv = false,
[string
$namespace = '']] )
Parameters
$function
— string- Function name
$argv
— object- Optional arguments to be used during the method call
$namespace
— string- Optional namespace with which to prefix the
function name (used for the signature key). Primarily to avoid
collisions, also for XmlRpc namespacing
Returns
- ReflectionFunction