Definition at line 39 of file Class.php.
◆ __construct()
__construct |
( |
ReflectionClass |
$reflection, |
|
|
|
$namespace = null , |
|
|
|
$argv = false |
|
) |
| |
Constructor
Create array of dispatchable methods, each a Zend_Server_Reflection_Method. Sets reflection object property.
- Parameters
-
ReflectionClass | $reflection | |
string | $namespace | |
mixed | $argv | |
- Returns
- void
Definition at line 77 of file Class.php.
79 $this->_reflection = $reflection;
82 foreach ($reflection->getMethods() as
$method) {
84 if (
'__' == substr(
$method->getName(), 0, 2)) {
◆ __call()
__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
Proxy reflection calls
- Parameters
-
- Returns
- mixed
Definition at line 102 of file Class.php.
104 if (method_exists($this->_reflection,
$method)) {
105 return call_user_func_array(array($this->_reflection,
$method), $args);
108 #require_once 'Zend/Server/Reflection/Exception.php';
◆ __get()
Retrieve configuration parameters
Values are retrieved by key from $_config. Returns null if no value found.
- Parameters
-
- Returns
- mixed
Definition at line 121 of file Class.php.
123 if (isset($this->_config[$key])) {
124 return $this->_config[$key];
◆ __set()
Set configuration parameters
Values are stored by $key in $_config.
- Parameters
-
- Returns
- void
Definition at line 139 of file Class.php.
141 $this->_config[$key] =
$value;
◆ __wakeup()
Wakeup from serialization
Reflection needs explicit instantiation to work correctly. Re-instantiate reflection object on wakeup.
- Returns
- void
Definition at line 194 of file Class.php.
196 $this->_reflection =
new ReflectionClass($this->getName());
◆ getMethods()
◆ getNamespace()
Get namespace for this class
- Returns
- string
Definition at line 160 of file Class.php.
◆ setNamespace()
setNamespace |
( |
|
$namespace | ) |
|
Set namespace for this class
- Parameters
-
- Returns
- void
Definition at line 171 of file Class.php.
173 if (empty($namespace)) {
174 $this->_namespace =
'';
178 if (!is_string($namespace) || !preg_match(
'/[a-z0-9_\.]+/i', $namespace)) {
179 #require_once 'Zend/Server/Reflection/Exception.php'; 183 $this->_namespace = $namespace;
◆ $_config
◆ $_methods
◆ $_namespace
◆ $_reflection
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Server/Reflection/Class.php