1639. Class

1639.1. Zend\Server\Reflection

Reflection for determining method signatures to use with server classes

1639.1.1. Methods

1639.1.1.1. reflectClass

reflectClass()

Perform class reflection to create dispatch signatures

Creates a {@link ZendServerReflectionClassReflection} 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:
  • string|object – Class name or object
  • bool|array – Optional arguments to be used during the method call
  • string – Optional namespace with which to prefix the

method name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing

rtype:ZendServerReflectionReflectionClass
throws:ZendServerReflectionExceptionInvalidArgumentException

1639.1.1.2. reflectFunction

reflectFunction()

Perform function reflection to create dispatch signatures

Creates dispatch prototypes for a function. It returns a {@link ZendServerReflectionFunctionReflection} object.

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

Parameters:
  • string – Function name
  • bool|array – Optional arguments to be used during the method call
  • string – Optional namespace with which to prefix the

function name (used for the signature key). Primarily to avoid collisions, also for XmlRpc namespacing

rtype:ZendServerReflectionReflectionFunction
throws:ZendServerReflectionExceptionInvalidArgumentException

Project Versions

Table Of Contents

Previous topic

1638. Class

Next topic

1640. Class

This Page