title: PHP get_class() functionality in child classes
body: <p>I need to check if a property exists and this works:</p>
  
  <pre><code>class someClass {
    protected $some_var
  
    public static function checkProperty($property) {
      if(!property_exists(get_class()) ) {
        return true;
      } else return false;
    }
  }
  </code></pre>
  
  <p>But now when I try to extend the class, it doesn't work anymore.</p>
  
  <pre><code>class someChild extends someClass {
    protected $child_property;
  
  }
  
  
  someChild::checkProperty('child_property'); // false
  </code></pre>
  
  <p>How do I get the functionality I want? I tried replacing <code>get_class()</code> with <code>$this</code>, <code>self</code>, <code>static</code>, nothing works.</p>