This has proven somewhat hard to explain, and it's probably very stupid design, but out of curiosity, is there a way to get the name of the class of a static method, that is calling another static method in another class.
Class A calls static method B in class B, that calls static method C in class C. In class C, I need the class name of the immediate method that called static method C, which would be class B.
class A {
function A () {
echo B::B();
}
}
class B {
function B () {
return C::C();
}
}
class C {
function C () {
return get_called_class();
}
}
This returns: A. I would like it to return: B.
Is this even possible?