1 | <?php |
||
21 | class ReflectionFunction extends BaseReflectionFunction |
||
22 | { |
||
23 | use ReflectionFunctionLikeTrait, InternalPropertiesEmulationTrait; |
||
24 | |||
25 | /** |
||
26 | * Initializes reflection instance for given AST-node |
||
27 | * |
||
28 | * @param string|\Closure $functionName The name of the function to reflect or a closure. |
||
29 | * @param Function_|null $functionNode Function node AST |
||
30 | */ |
||
31 | 10 | public function __construct($functionName, Function_ $functionNode) |
|
41 | |||
42 | /** |
||
43 | * Emulating original behaviour of reflection |
||
44 | */ |
||
45 | 1 | public function __debugInfo() |
|
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | public function getClosure() |
||
65 | |||
66 | /** |
||
67 | * {@inheritDoc} |
||
68 | */ |
||
69 | public function invoke($args = null) |
||
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | public function invokeArgs(array $args) |
||
85 | |||
86 | /** |
||
87 | * Checks if function is disabled |
||
88 | * |
||
89 | * Only internal functions can be disabled using disable_functions directive. |
||
90 | * User-defined functions are unaffected. |
||
91 | */ |
||
92 | public function isDisabled() |
||
103 | |||
104 | /** |
||
105 | * Returns textual representation of function |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | public function __toString() |
||
126 | |||
127 | |||
128 | /** |
||
129 | * Implementation of internal reflection initialization |
||
130 | * |
||
131 | * @return void |
||
132 | */ |
||
133 | protected function __initialize() |
||
137 | } |
||
138 |