What are useful php annotations for Netbeans code completition? I'm already familiar with @return
, @param
and @throws
, but are there any others?
For example, can I set which keys will returned ArrayObject have? In this example, I'd like IDE to suggest me foo
and bar
after I type get()->
. Is it even possible? If so, how?
/**
* @ ???
*/
function get() {
$res = new \ArrayObject();
$res->foo = 1;
$res->bar = 2;
return $res;
}