Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Method.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Server/Reflection/Function/Abstract.php';
25 
38 {
43  protected $_class;
44 
49  protected $_classReflection;
50 
60  public function __construct(Zend_Server_Reflection_Class $class, ReflectionMethod $r, $namespace = null, $argv = array())
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  }
85 
91  public function getDeclaringClass()
92  {
94  }
95 
104  public function __wakeup()
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  }
109 
110 }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$_option $_optionId $class
Definition: date.phtml:13
__construct(Zend_Server_Reflection_Class $class, ReflectionMethod $r, $namespace=null, $argv=array())
Definition: Method.php:60