|
ReflectionMethod::setAccessibleSet method accessibility Description
public void ReflectionMethod::setAccessible(bool
$accessible )Enables invoking of a protected or private method via the ReflectionMethod::invoke method.
Parameters
Return ValuesNo value is returned. ExamplesExample #1 Simple Class definition
The above example will output something similar to: bar Fatal error: Uncaught Error: Call to private method MyClass::foo() from global scope in /in/qdaZS:16 See Also
|