Say I have this classes
class Grandpa
{
public function call(){
// Well, I want to know who calls me here
}
}
class Father extends Grandpa
{
}
class GrandsonOne extends Father
{
}
class GrandsonTwo extends Father
{
}
Now, I call functions from the Grandson classes like so:
GrandsonOne::call();
GrandsonTwo::call();
How can I figure out who called?