Server/Reflection/Method.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  

\Zend_Server_Reflection_Method

Package: Zend\Server\Reflection

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.

Parent(s)
\Zend_Server_Reflection_Function_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\global\Zend_Server_Reflection_Function_Abstract  
Version
$Id: Method.php 24593 2012-01-05 20:35:02Z matthew $  

Properties

Propertyprotectedarray $_argv = array()
inherited

Additional arguments to pass to method on invocation

Inherited from: \Zend_Server_Reflection_Function_Abstract::$$_argv
Default valuearray()Details
Type
array
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_argv  
Propertyprotectedstring $_class =

Parent class name

Details
Type
string
Propertyprotected\Zend_Server_Reflection_Class $_classReflection =

Parent class reflection

Propertyprotectedarray $_config = array()
inherited

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

Inherited from: \Zend_Server_Reflection_Function_Abstract::$$_config

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

Default valuearray()Details
Type
array
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_config  
Propertyprotectedstring $_description = ''
inherited

Function/method description

Inherited from: \Zend_Server_Reflection_Function_Abstract::$$_description
Default value''Details
Type
string
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_description  
Propertyprotectedstring $_namespace =
inherited

Namespace with which to prefix function/method name

Inherited from: \Zend_Server_Reflection_Function_Abstract::$$_namespace
Details
Type
string
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_namespace  
Propertyprivate$_paramDesc =
Details
Type
n/a
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_paramDesc  
Propertyprotectedarray $_prototypes = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_prototypes  
Propertyprotected\ReflectionFunction $_reflection =
Propertyprivate$_return =
Details
Type
n/a
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_return  
Propertyprivate$_returnDesc =
Propertyprivate$_sigParams =
Details
Type
n/a
Inherited_from
\Zend_Server_Reflection_Function_Abstract::$$_sigParams  
Propertyprivate$_sigParamsDepth =

Methods

methodpublic__call(string $method, array $args) : mixed
inherited

Proxy reflection calls

Inherited from: \Zend_Server_Reflection_Function_Abstract::__call()
Parameters
Name Type Description
$method string
$args array
Returns
Type Description
mixed
methodpublic__construct(\Zend_Server_Reflection_Class $class, \ReflectionMethod $r, string $namespace = null, array $argv = array()) : void

Constructor

Parameters
Name Type Description
$class \Zend_Server_Reflection_Class
$r \ReflectionMethod
$namespace string
$argv array
methodpublic__get(string $key) : mixed
inherited

Retrieve configuration parameters

Inherited from: \Zend_Server_Reflection_Function_Abstract::__get()

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

Parameters
Name Type Description
$key string
Returns
Type Description
mixed
methodpublic__set(string $key, mixed $value) : void
inherited

Set configuration parameters

Inherited from: \Zend_Server_Reflection_Function_Abstract::__set()

Values are stored by $key in $_config.

Parameters
Name Type Description
$key string
$value mixed
methodpublic__wakeup() : void

Wakeup from serialization

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

methodprotected_addTree(\Zend_Server_Reflection_Node $parent, int $level = 0) : void
inherited

Create signature node tree

Inherited from: \Zend_Server_Reflection_Function_Abstract::_addTree()

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
Name Type Description
$parent \Zend_Server_Reflection_Node
$level int
methodprotected_buildSignatures(array $return, string $returnDesc,  $paramTypes, array $paramDesc) : array
inherited

Build method signatures

Inherited from: \Zend_Server_Reflection_Function_Abstract::_buildSignatures()

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

Parameters
Name Type Description
$return array

Array of return types

$returnDesc string

Return value description

$paramTypes
$paramDesc array

Array of parameter descriptions

Returns
Type Description
array
methodprotected_buildTree() : array
inherited

Build the signature tree

Inherited from: \Zend_Server_Reflection_Function_Abstract::_buildTree()

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

Returns
Type Description
array
methodprotected_reflect() : array
inherited

Use code reflection to create method signatures

Inherited from: \Zend_Server_Reflection_Function_Abstract::_reflect()

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
Type Description
array
methodpublicgetDeclaringClass() : \Zend_Server_Reflection_Class

Return the reflection for the class that defines this method

Returns
Type Description
\Zend_Server_Reflection_Class
methodpublicgetDescription() : void
inherited

Retrieve the description

Inherited from: \Zend_Server_Reflection_Function_Abstract::getDescription()
methodpublicgetInvokeArguments() : array
inherited

Retrieve additional invocation arguments

Inherited from: \Zend_Server_Reflection_Function_Abstract::getInvokeArguments()
Returns
Type Description
array
methodpublicgetNamespace() : string
inherited

Return method's namespace

Inherited from: \Zend_Server_Reflection_Function_Abstract::getNamespace()
Returns
Type Description
string
methodpublicgetPrototypes() : array
inherited

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

Inherited from: \Zend_Server_Reflection_Function_Abstract::getPrototypes()
Returns
Type Description
array
methodpublicsetDescription(string $string) : void
inherited

Set the description

Inherited from: \Zend_Server_Reflection_Function_Abstract::setDescription()
Parameters
Name Type Description
$string string
methodpublicsetNamespace(string $namespace) : void
inherited

Set method's namespace

Inherited from: \Zend_Server_Reflection_Function_Abstract::setNamespace()
Parameters
Name Type Description
$namespace string
Documentation was generated by phpDocumentor 2.0.0a8.