I have a TableData class with two magic methods. One of them is the constructor, and the other is the __call method.
I understood the call with the following code:
$class = new ReflectionClass('TableData');
$class->newInstanceArgs($parArray);
It works great. But now I want to use my magic method. Therefore I call $class->getData(), but it does not work. I get an error that I called the undefined method.
I tried to use ReflectionMethod and call, but it does not work again.
Is it impossible to apply the ReflectionClass object to the TableData class?
Thanks for the advice!
source
share