Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Server_Reflection_Method Class Reference
Inheritance diagram for Zend_Server_Reflection_Method:
Zend_Server_Reflection_Function_Abstract

Public Member Functions

 __construct (Zend_Server_Reflection_Class $class, ReflectionMethod $r, $namespace=null, $argv=array())
 
 getDeclaringClass ()
 
 __wakeup ()
 
- Public Member Functions inherited from Zend_Server_Reflection_Function_Abstract
 __construct (Reflector $r, $namespace=null, $argv=array())
 
 __call ($method, $args)
 
 __get ($key)
 
 __set ($key, $value)
 
 setNamespace ($namespace)
 
 getNamespace ()
 
 setDescription ($string)
 
 getDescription ()
 
 getPrototypes ()
 
 getInvokeArguments ()
 
 __wakeup ()
 

Protected Attributes

 $_class
 
 $_classReflection
 
- Protected Attributes inherited from Zend_Server_Reflection_Function_Abstract
 $_reflection
 
 $_argv = array()
 
 $_config = array()
 
 $_class
 
 $_description = ''
 
 $_namespace
 
 $_prototypes = array()
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Server_Reflection_Function_Abstract
 _addTree (Zend_Server_Reflection_Node $parent, $level=0)
 
 _buildTree ()
 
 _buildSignatures ($return, $returnDesc, $paramTypes, $paramDesc)
 
 _reflect ()
 

Detailed Description

Definition at line 37 of file Method.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Zend_Server_Reflection_Class  $class,
ReflectionMethod  $r,
  $namespace = null,
  $argv = array() 
)

Constructor

Parameters
Zend_Server_Reflection_Class$class
ReflectionMethod$r
string$namespace
array$argv
Returns
void

Definition at line 60 of file Method.php.

61  {
62  $this->_classReflection = $class;
63  $this->_reflection = $r;
64 
65  $classNamespace = $class->getNamespace();
66 
67  // Determine namespace
68  if (!empty($namespace)) {
69  $this->setNamespace($namespace);
70  } elseif (!empty($classNamespace)) {
71  $this->setNamespace($classNamespace);
72  }
73 
74  // Determine arguments
75  if (is_array($argv)) {
76  $this->_argv = $argv;
77  }
78 
79  // If method call, need to store some info on the class
80  $this->_class = $class->getName();
81 
82  // Perform some introspection
83  $this->_reflect();
84  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$_option $_optionId $class
Definition: date.phtml:13

Member Function Documentation

◆ __wakeup()

__wakeup ( )

Wakeup from serialization

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

Returns
void

Definition at line 104 of file Method.php.

105  {
106  $this->_classReflection = new Zend_Server_Reflection_Class(new ReflectionClass($this->_class), $this->getNamespace(), $this->getInvokeArguments());
107  $this->_reflection = new ReflectionMethod($this->_classReflection->getName(), $this->getName());
108  }

◆ getDeclaringClass()

getDeclaringClass ( )

Return the reflection for the class that defines this method

Returns
Zend_Server_Reflection_Class

Definition at line 91 of file Method.php.

92  {
94  }

Field Documentation

◆ $_class

$_class
protected

Definition at line 43 of file Method.php.

◆ $_classReflection

$_classReflection
protected

Definition at line 49 of file Method.php.


The documentation for this class was generated from the following file: