Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active August 29, 2015 14:25
Show Gist options
  • Save phpdave/331a4a669d719dd99691 to your computer and use it in GitHub Desktop.
Save phpdave/331a4a669d719dd99691 to your computer and use it in GitHub Desktop.
Netbeans PHP intellisense - type hinting to the IDE to get your class functions and vars
<?
/* @var $myclass MyClass */
$myclass = ServiceLocator::locate('MyClass');
$myclass->//::TODO:: press control space to invoke intellisense when the cursor is after the arrow to see the intellisense work!
<?
class MyClass
{
protected $_variable='';
public $publicvar='';
public function myFunction
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment