title: PHP Code Hinting Dynamically Created Classes
body: <p>I'm writing an autoloader but can't seem to get code hinting working on PHPStorm.</p>
  
  <p>Here is the autoloader</p>
  
  <pre><code>function __autoloader()
  {
      $arr = array(
          'class1',
          'class2',
          'class3',
      );
  
      foreach ($arr as $class)
      {
          require_once($class . '.php');
      }
  }
  
  $obj = new class1();
  $obj-&gt;????
  </code></pre>
  
  <p>Assuming that each class is completely different, what is the best way to get code hinting with the above code?</p>
  
  <p>Thanks.</p>