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.

uses
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$
inherited_from \Zend_Server_Reflection_Function_Abstract

 Methods

Proxy reflection calls

__call(string $method, array $args) : mixed
Inherited

Parameters

$method

string

$args

array

Returns

mixed

Constructor

__construct(\Zend_Server_Reflection_Class $class, \ReflectionMethod $r, string $namespace = null, array $argv = array()) : void
inherited_from \Zend_Server_Reflection_Function_Abstract::__construct()

Parameters

$class

\Zend_Server_Reflection_Class

$r

\ReflectionMethod

$namespace

string

$argv

array

Constructor

__construct(\ReflectionFunction $r, $namespace = null, $argv = array()
Inherited

Parameters

$r

\ReflectionFunction

$namespace

$argv

Retrieve configuration parameters

__get(string $key) : mixed
Inherited

Values are retrieved by key from \$_config. Returns null if no value found.

Parameters

$key

string

Returns

mixed

Set configuration parameters

__set(string $key, mixed $value) : void
Inherited

Values are stored by $key in \$_config.

Parameters

$key

string

$value

mixed

Wakeup from serialization

__wakeup() : void

Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.

inherited_from \Zend_Server_Reflection_Function_Abstract::__wakeup()

Wakeup from serialization

__wakeup() : void
Inherited

Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.

Return the reflection for the class that defines this method

getDeclaringClass() : \Zend_Server_Reflection_Class

Returns

\Zend_Server_Reflection_Class

Retrieve the description

getDescription() : void
Inherited

Retrieve additional invocation arguments

getInvokeArguments() : array
Inherited

Returns

array

Return method's namespace

getNamespace() : string
Inherited

Returns

string

Retrieve all prototypes as array of {@link Zend_Server_Reflection_Prototype Zend_Server_Reflection_Prototypes}

getPrototypes() : array
Inherited

Returns

array

Set the description

setDescription(string $string) : void
Inherited

Parameters

$string

string

Set method's namespace

setNamespace(string $namespace) : void
Inherited

Parameters

$namespace

string

Create signature node tree

_addTree(\Zend_Server_Reflection_Node $parent, integer $level = 0) : void
Inherited

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).

Parameters

$parent

\Zend_Server_Reflection_Node

$level

integer

Build method signatures

_buildSignatures(array $return, string $returnDesc, $paramTypes, array $paramDesc) : array
Inherited

Builds method signatures using the array of return types and the array of parameters types

Parameters

$return

array

Array of return types

$returnDesc

string

Return value description

$paramTypes

$paramDesc

array

Array of parameter descriptions

Returns

array

Build the signature tree

_buildTree() : array
Inherited

Builds a signature tree starting at the return values and descending through each method argument. Returns an array of Zend_Server_Reflection_Nodes.

Returns

array

Use code reflection to create method signatures

_reflect() : array
Inherited

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.

Returns

array

 Properties

 

Additional arguments to pass to method on invocation

$_argv : array

Default

array()
 

Parent class name

$_class : string

Default

inherited_from \Zend_Server_Reflection_Function_Abstract::_class
 

Declaring class (needed for when serialization occurs)

$_class : string

Default

 

Parent class reflection

$_classReflection : \Zend_Server_Reflection_Class

Default

 

Used to store extra configuration for the method (typically done by the server class, e.g., to indicate whether or not to instantiate a class).

$_config : array

Default

array()

Associative array; access is as properties via __get() and __set()

 

Function/method description

$_description : string

Default

''
 

Namespace with which to prefix function/method name

$_namespace : string

Default

 

Prototypes

$_prototypes : array

Default

array()
 

$_reflection

$_reflection : \ReflectionFunction

Default

 

$_paramDesc

$_paramDesc 

Default

 

$_return

$_return 

Default

 

$_returnDesc

$_returnDesc 

Default

 

$_sigParams

$_sigParams 

Default

 

$_sigParamsDepth

$_sigParamsDepth 

Default