Class/Object reflection

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

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$

 Methods

Proxy reflection calls

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

Parameters

$method

string

$args

array

Returns

mixed

Constructor

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

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

Parameters

$reflection

\ReflectionClass

$namespace

string

$argv

mixed

Retrieve configuration parameters

__get(string $key) : mixed

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

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.

Return array of dispatchable {@link Zend_Server_Reflection_Method}s.

getMethods() : array
access public

Returns

array

Get namespace for this class

getNamespace() : string

Returns

string

Set namespace for this class

setNamespace(string $namespace) : void

Parameters

$namespace

string

 Properties

 

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

$_config : array

Default

array()
 

Array of {@link Zend_Server_Reflection_Method}s

$_methods : array

Default

array()
 

Namespace

$_namespace : string

Default

null
 

ReflectionClass object

$_reflection : \ReflectionClass

Default