\Zend_Server_Reflection_Class

Class/Object reflection

Proxies calls to a ReflectionClass object, and decorates getMethods() by creating its own list of Zend_Server_Reflection_Methods.

Summary

Methods
Properties
Constants
__construct()
__call()
__get()
__set()
getMethods()
getNamespace()
setNamespace()
__wakeup()
No public properties found
No constants found
No protected methods found
$_config
$_methods
$_namespace
$_reflection
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : array

Optional configuration parameters; accessible via {@link __get} and {@link __set()}

Type

array

$_methods

$_methods : array

Array of {@link Zend_Server_Reflection_Method}s

Type

array

$_namespace

$_namespace : string

Namespace

Type

string

$_reflection

$_reflection : \ReflectionClass

ReflectionClass object

Type

\ReflectionClass

Methods

__construct()

__construct(\ReflectionClass  $reflection, string  $namespace = null, mixed  $argv = false) : void

Constructor

Create array of dispatchable methods, each a Zend_Server_Reflection_Method. Sets reflection object property.

Parameters

\ReflectionClass $reflection
string $namespace
mixed $argv

__call()

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

Proxy reflection calls

Parameters

string $method
array $args

Returns

mixed

__get()

__get(string  $key) : mixed

Retrieve configuration parameters

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

Parameters

string $key

Returns

mixed

__set()

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

Set configuration parameters

Values are stored by $key in \$_config.

Parameters

string $key
mixed $value

getMethods()

getMethods() : array

Return array of dispatchable {@link Zend_Server_Reflection_Method}s.

Returns

array

getNamespace()

getNamespace() : string

Get namespace for this class

Returns

string

setNamespace()

setNamespace(string  $namespace) : void

Set namespace for this class

Parameters

string $namespace

__wakeup()

__wakeup() : void

Wakeup from serialization

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