简体   繁体   English

Netbeans PHP getter / setter定制

[英]Netbeans PHP getter/setter customization

I'm using Netbeans for PHP code. 我正在将Netbeans用于PHP代码。 When I use the generator for getter and setter methods in a class, the functions are named 当我将生成器用于类中的getter和setter方法时,这些函数将被命名

get_something()
set_something()

How can I generate the functions in the camel case: 我如何在驼峰情况下生成函数:

getSomething()
setSomething()

What version of Netbeans are you using? 您正在使用哪个版本的Netbeans?

In 6.9 if you go Source -> Insert Code -> Getter.../Setter... there is a drop-down selection for Method Name. 在6.9中,如果您选择Source -> Insert Code -> Getter.../Setter... ,则有Method Name的下拉选择。 In there you can select either camel case or using underscores. 您可以在其中选择驼峰式大写字母或使用下划线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM