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.
Summary: | Create the generating setters and getters customizable | ||
---|---|---|---|
Product: | php | Reporter: | Petr Pisl <ppisl> |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | bobw |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Petr Pisl
2008-11-04 17:13:57 UTC
C'mon guys, please implement this small feature, almost a year has passed. Because of it's absence i have to edit the generated setters and getters every time. Any update on this issue? I tried the latest nightly build (200910170201), and it still has not supported this feature. Thank you. Unfortunately I haven't time to do it. But I can do now small change. Just check, whether the name property starts with underscore and in such case it would be the underscore ignored. It will be sufficient for now? Hi, I to suffer from this issue. Any chance a patch? Given the popularity of Zend Framework I can imagine many others would like this feature as well. Thanks, Ben Still not enough time:(. Do you need full customization or what behavior is sufficient for Zend framework developers. Private and protected variables are prefixed with an underscore. Getters and setters should not contain an underscore the get or set should be lower case an the variable names should be capitalised. See below: Variables: protected $_variable protected $_variableTwo protected $_variableTwentyTwo Getters and Setters: public function getVariable(){ } public function getVariableTwo(){ } public function getVariableTwentyTwo(){ } public function setVariable($variable){ } public function setVariableTwo($variableTwo){ } public function setVariableTwentyTwo($variableTwentyTwo){ } Hope this helps, thanks for your attention to the issue. Ben *** Bug 187964 has been marked as a duplicate of this bug. *** Works for me in NB 7.0.1. |