1 | <?php |
||
20 | class ReflectionFunction extends BaseReflectionFunction |
||
21 | { |
||
22 | use ReflectionFunctionLikeTrait; |
||
23 | |||
24 | /** |
||
25 | * Initializes reflection instance for given AST-node |
||
26 | * |
||
27 | * @param string|\Closure $functionName The name of the function to reflect or a closure. |
||
28 | * @param Function_|null $functionNode Function node AST |
||
29 | */ |
||
30 | 7 | public function __construct($functionName, Function_ $functionNode) |
|
39 | |||
40 | /** |
||
41 | * Emulating original behaviour of reflection |
||
42 | */ |
||
43 | public function __debugInfo() |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | public function getClosure() |
||
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | */ |
||
67 | public function invoke($args = null) |
||
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | */ |
||
77 | public function invokeArgs(array $args) |
||
83 | |||
84 | /** |
||
85 | * Checks if function is disabled |
||
86 | * |
||
87 | * Only internal functions can be disabled using disable_functions directive. |
||
88 | * User-defined functions are unaffected. |
||
89 | */ |
||
90 | public function isDisabled() |
||
101 | |||
102 | /** |
||
103 | * Returns textual representation of function |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | public function __toString() |
||
124 | |||
125 | |||
126 | /** |
||
127 | * Implementation of internal reflection initialization |
||
128 | * |
||
129 | * @return void |
||
130 | */ |
||
131 | protected function __initialize() |
||
135 | } |
||
136 |