title: PHP: Get class name of static method calling another static class
body: <p>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.</p>
  
  <p>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.</p>
  
  <pre><code>class A {
     function A () {
         echo B::B();
     }
  }
  
  class B {
     function B () {
         return C::C();
     }
  }
  
  class C {
     function C () {
         return get_called_class();
     }
  }
  </code></pre>
  
  <p>This returns: A. I would like it to return: B.</p>
  
  <p>Is this even possible?</p>