I use this template for PHP methods in Eclipse:
${cursor}
${visibility} function ${functionName}(${dollar}${param})
{
// @todo method body for ${class_container}::${functionName}()
return ${value};
}
I just type fnc (which can be customized), and it gives me the option to insert the template, and tabs the cursor through the template variables so I can fill them in. I like to define my method signatures before filling in the body, so I add a @todo comment to keep track of loose ends in Eclipse task view. I like to end with the cursor above the method signature so that I can immediately start a docblock by /**. This is why I like to put a dummy return in there so that the docblock will detect the return type.