> 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.
没有评论:
发表评论