Posted by Ryan Lange on 06/18/06 18:23
Yikes! Premature posting...
Ryan Lange wrote:
> And, if that's not the case, then @Chung Leong: The IDE keeps track
> of which class you assign to the variable. Zend Studio is even capable
> of doing this for assignments from a function call:
The function definition must have a docblock that indicates the
return value, though:
/**
* @return MyClass
*/
function getMyClass()
{
return new MyClass();
}
$obj = getMyClass();
$obj->[ZDE pops up a list of public methods from MyClass]
Very useful. :-)
Ryan
Navigation:
[Reply to this message]
|