title: Variable type hinting in Netbeans (PHP)
body: <p>Just curious if there's a way in netbeans to give type hints for regular variables, so that intellisense picks it up. I know you can do it for class properties, function parameters, return types, etc. but I can't figure out how to do it for regular variables. It's something that would really help in situations where you have a method that can return different object types (like a service locator).</p>
  
  <p>ex something like:</p>
  
  <pre><code>/**
   * @var Some_Service $someService
   */
  $someService = ServiceLocator::locate('someService');
  </code></pre>
  
  <p>Where using $someService afterward, netbeans would provide all available methods defined in the class Some_Service.</p>