__call()
__construct()
__get()
__set()
__wakeup()
getDescription()
getInvokeArguments()
getNamespace()
getPrototypes()
setDescription()
setNamespace()
addTree()
buildSignatures()
buildTree()
reflect()
$argv
$class
$config
$description
$namespace
$prototypes
$reflection
$paramDesc
$return
$returnDesc
$sigParams
$sigParamsDepth
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.
__call(string $method, array $args) : mixed
string
array
\Zend\Server\Reflection\Exception\BadMethodCallException |
---|
mixed
__construct(\ReflectionFunctionAbstract $r, null | string $namespace, null | array $argv)
nullstring
nullarray
\Zend\Server\Reflection\Exception\InvalidArgumentException |
|
---|---|
\Zend\Server\Reflection\Exception\RuntimeException |
__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
__wakeup() : void
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
getDescription() : string
string
getInvokeArguments() : array
array
getNamespace() : string
string
getPrototypes() : \Zend\Server\Reflection\Prototype[]
setDescription(string $string) : void
setNamespace(string $namespace) : void
addTree(\Zend\Server\Reflection\Node $parent, int $level) : 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
int
buildSignatures(array $return, string $returnDesc, array $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 arguments (each an array of types)
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.
\Zend\Server\Reflection\Exception\RuntimeException |
---|
array
$argv : array
$class : string
$config : array
$description : string
$namespace : string
$prototypes : array
$paramDesc
$return
$returnDesc
$sigParams
$sigParamsDepth