|
Posted by Chung Leong on 06/19/06 04:15
Ryan Lange wrote:
> 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. :-)
Aha, now it makes sense.
Navigation:
[Reply to this message]
|