Class/Object reflection

Proxies calls to a ReflectionClass object, and decorates getMethods() by creating its own list of Zend\Server\Reflection\ReflectionMethods.

 Methods

Proxy reflection calls

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

Parameters

$method

string

$args

array

Exceptions

\Zend\Server\Reflection\Exception\BadMethodCallException

Returns

mixed

Constructor

__construct(\ReflectionClass $reflection, string $namespace, mixed $argv) 

Create array of dispatchable methods, each a Zend\Server\Reflection\ReflectionMethod. 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\ReflectionMethod}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

Exceptions

\Zend\Server\Reflection\Exception\InvalidArgumentException

 Properties

 

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

$config : array

 

Array of {@link \Zend\Server\Reflection\Method}s

$methods : array

 

Namespace

$namespace : string

 

ReflectionClass object

$reflection : \ReflectionClass