1521.1. Zend\Server\Reflection\AbstractFunction
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 {@link ZendServerReflectionPrototype prototypes}.
1521.1.1. Methods
1521.1.1.1. __construct
-
__construct()
Constructor
Parameters: |
- ReflectionFunctionAbstract –
- null|string –
- null|array –
|
Throws ExceptionInvalidArgumentException: |
| |
Throws ExceptionRuntimeException: |
| |
1521.1.1.2. addTree
-
addTree()
Create signature node tree
Recursive method to build the signature node tree. Increments through
each array in {@link $sigParams}, adding every value of the next level
to the current value (unless the current value is null).
Parameters: |
- ZendServerReflectionNode –
- int –
|
Return type: | void
|
1521.1.1.3. buildTree
-
buildTree()
Build the signature tree
Builds a signature tree starting at the return values and descending
through each method argument. Returns an array of
{@link ZendServerReflectionNode}s.
1521.1.1.4. buildSignatures
-
buildSignatures()
Build method signatures
Builds method signatures using the array of return types and the array of
parameters types
Parameters: |
- array – Array of return types
- string – Return value description
- array – Array of arguments (each an array of types)
- array – Array of parameter descriptions
|
Return type: | array
|
1521.1.1.5. reflect
-
reflect()
Use code reflection to create method signatures
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.
1521.1.1.6. __call
-
__call()
Proxy reflection calls
Parameters: |
|
Throws ExceptionBadMethodCallException: |
| |
Return type: | mixed
|
1521.1.1.7. __get
-
__get()
Retrieve configuration parameters
Values are retrieved by key from {@link $config}. Returns null if no
value found.
Parameters: | string – |
Return type: | mixed |
1521.1.1.8. __set
-
__set()
Set configuration parameters
Values are stored by $key in {@link $config}.
Parameters: |
|
Return type: | void
|
1521.1.1.9. setNamespace
-
setNamespace()
Set method’s namespace
Parameters: | string – |
Throws ExceptionInvalidArgumentException: |
| |
Return type: | void |
1521.1.1.10. getNamespace
-
getNamespace()
Return method’s namespace
1521.1.1.11. setDescription
-
setDescription()
Set the description
Parameters: | string – |
Throws ExceptionInvalidArgumentException: |
| |
Return type: | void |
1521.1.1.12. getDescription
-
getDescription()
Retrieve the description
1521.1.1.13. getPrototypes
-
getPrototypes()
Retrieve all prototypes as array of
{@link ZendServerReflectionPrototype}s
1521.1.1.14. getInvokeArguments
-
getInvokeArguments()
Retrieve additional invocation arguments
1521.1.1.15. __wakeup
-
__wakeup()
Wakeup from serialization
Reflection needs explicit instantiation to work correctly. Re-instantiate
reflection object on wakeup.