how do i use @var on a function variable?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-05-18T08:31:44Z Indexed on 2010/05/18 9:00 UTC
Read the original article Hit count: 98

Filed under:
|

i've got a variable $user that is of data type User (a class).

i've got it in a class method so i can't just type:

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

because that will work only with class properties, not method variables like in this case.

how could i tell netbeans that that variable is of data type User in a method?

Thanks!

© Stack Overflow or respective owner

Related posts about netbeans

Related posts about php