I have a series of inherited classes using a lot of method overloading and I need a way to find out which class is being used when it calls a particular method.
simple example:
class child extends parent
public function _process()
{
$this->_otherrun();
}
public function _run()
class parent extends grandparent
public function _run()
public function _otherrun()
{
// I need to find out which class the version of _run is called in
$this->_run();
}
this example is quite simple compared to what I'm looking through, so I need a way to see in which class function _run
is processed in. Is that even possible?
Something like this:
get_class(array($this, 'run'));