Reflection for determining method signatures to use with server classes

 Methods

Perform class reflection to create dispatch signatures

reflectClass(string | object $class, bool | array $argv, string $namespace) : \Zend\Server\Reflection\ReflectionClass

Creates a \Zend\Server\Reflection\ClassReflection object for the class or object provided.

If extra arguments should be passed to dispatchable methods, these may be provided as an array to $argv.

Parameters

$class

stringobject

Class name or object

$argv

boolarray

Optional arguments to be used during the method call

$namespace

string

Optional namespace with which to prefix the method name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing

Exceptions

\Zend\Server\Reflection\Exception\InvalidArgumentException

Returns

Perform function reflection to create dispatch signatures

reflectFunction(string $function, bool | array $argv, string $namespace) : \Zend\Server\Reflection\ReflectionFunction

Creates dispatch prototypes for a function. It returns a Zend\Server\Reflection\FunctionReflection object.

If extra arguments should be passed to the dispatchable function, these may be provided as an array to $argv.

Parameters

$function

string

Function name

$argv

boolarray

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

Exceptions

\Zend\Server\Reflection\Exception\InvalidArgumentException

Returns