title: get_class in static method and inheritance (php)
body: <p>We have a code</p>
  
  <pre><code>class ParentClass {
    public static function getName() {
      return get_class(self);
    }
  }
  
  class ChildClass extends ParentClass {
  }
  
  echo ParentClass::getName(); # =&gt; 'ParentClass'
  echo ChildClass::getName(); # =&gt; 'ParentClass'
  </code></pre>
  
  <p>if I use get_class($this) there is the same result. Also for self::$this, static::$this etc</p>
  
  <p>Any way to get child class name without adding methods to child class for this?</p>