说我有这门课
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
{
}
现在,我从 Grandson 类中调用函数,如下所示:
GrandsonOne::call();
GrandsonTwo::call();
我怎么知道是谁打来的?