You need to comment function parameters and return values to full enable code completion. You should also comment class variables.
/** * Method description * @param datatype $arg1 Arg1 description * @param datatype $arg2 Arg2 description * @return datatype Return value description */ function myfunction($arg1, $arg2) { ... }