What you're looking for is the get_called_class function. From the PHP docs:-
Gets the name of the class the static method is called in.
So
class Grandpa
{
public function call()
{
// Well, I want to know who calls me here
echo get_called_class();
}
}
will output the name of the called class.