Is there a way in PHP to find out what object called what method in another object.
Exmaple:
class Foo { public function __construct() { $bar
var_dump(getClass($this));
Used in a method in namespace B this will give you the class that called a method in namespace B from namespace A.