2009年6月4日星期四

Re: [fw-mvc] get and set accessors

> Supposedly you can do this in eclipse...I never tried but read this comment.
> http://codeutopia.net/blog/2009/02/28/creating-a-simple-abstract-model-to-reduce-boilerplate-code/#comment-27653

We also found @var like this:

/* @var $user User */
$user = Factory::getInstance('Users');

That would provide auto complete for the $user object in Zend Studio.


> I know it can also should be able to be done in netbeans using the vdoc
> template http://blogs.sun.com/netbeansphp/entry/defining_a_variable_type_in
>
> This is not just an issue with magic methods...its also an issue with an
> method that can return more than one datatype, or with factory methods
> possibly.

没有评论: