Function/Method Reflection
Decorates a ReflectionFunction. Allows setting and retrieving an alternate 'service' name (i.e., the name to be used when calling via a service), setting and retrieving the description (originally set using the docblock contents), retrieving the callback and callback type, retrieving additional method invocation arguments, and retrieving the method prototypes.
category | Zend |
---|---|
package | Zend_Server |
subpackage | Reflection |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
version | $Id$ |
__call(string $method, array $args) : mixed
string
array
mixed
__construct(\ReflectionFunction $r, $namespace= null
, $argv= array()
)
\ReflectionFunction
__get(string $key) : mixed
Values are retrieved by key from \$_config. Returns null if no value found.
string
mixed
__set(string $key, mixed $value) : void
Values are stored by $key in \$_config.
string
mixed
__wakeup() : void
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
getDescription() : void
getInvokeArguments() : array
array
getNamespace() : string
string
getPrototypes() : array
array
setDescription(string $string) : void
string
setNamespace(string $namespace) : void
string
_addTree(\Zend_Server_Reflection_Node $parent, integer $level = 0
) : void
Recursive method to build the signature node tree. Increments through each array in \$_sigParams, adding every value of the next level to the current value (unless the current value is null).
\Zend_Server_Reflection_Node
integer
_buildSignatures(array $return, string $returnDesc, $paramTypes, array $paramDesc) : array
Builds method signatures using the array of return types and the array of parameters types
array
Array of return types
string
Return value description
array
Array of parameter descriptions
array
_buildTree() : array
Builds a signature tree starting at the return values and descending through each method argument. Returns an array of Zend_Server_Reflection_Nodes.
array
_reflect() : array
Determines the method help/description text from the function DocBlock comment. Determines method signatures using a combination of ReflectionFunction and parsing of DocBlock @param and @return values.
array
$_argv : array
array()
$_class : string
$_config : array
array()
Associative array; access is as properties via __get() and __set()
$_description : string
''
$_namespace : string
$_prototypes : array
array()
$_reflection : \ReflectionFunction
$_paramDesc
$_return
$_returnDesc
$_sigParams
$_sigParamsDepth