note 109775 deleted from language.oop5.overloading by danbrown

From: Date: Fri, 31 Aug 2012 15:51:28 +0000
Subject: note 109775 deleted from language.oop5.overloading by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190343@lists.php.net to get a copy of this message
Note Submitter: derakkilgo at gmail dot com ---- To remedy the problem with autocomplete with most IDE's its possible to add method hints which will help users of your class discover methods that should be there. /** * Example Class * @method int doSomething() */ class MyClass { public function __call($name,$args){ // your code here } } When this class is probed via code complete it will show the 'doSomething' method even though it doesn't really exist in the class. This syntax is used extensively in the magento code base.

« previous php.notes (#190343) next »