This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I have private or static member variable, I declare it with beginning underscore. private $_test = null; Then, when I use options to generate getter and setter automatically (alt+ins) I get method named: set_test() and get_test() instead of setTest() and getTest(). Config option to choose naming convention or whether to trim trailing underscore form member variables would be very helpful.
Not a defect; I will try to look at it.
Adding this feature would solve one of my biggest irritatations!
Petr fixed this, please verify. Thanks. http://hg.netbeans.org/web-main?cmd=changeset;node=655a2281499d
Thanks for adding additional option. This works fine, except the underscore in the variable name should be removed too: private $_foo; should be: public function setFoo($foo) {} is: public function setFoo($_foo) {} It would be nice that Netbeans could generate PHPDoc comments for the setters/getters and corresponding variables too e.g. Setter/Getter for {protected/private} variable {@see $_foo}