How to generate PHP getters and setters in NetBeans? How to generate PHP getters and setters in NetBeans? php php

How to generate PHP getters and setters in NetBeans?


Just right click in side the class body,not over the class variables and choose insert code option as shown in third image. link:http://w.planetnetbeans.org/topic28565.html

getters and setters

generate optioninsert code option


first, the caret position has to be inside a PHP class and you have to press shortcut ALT+Insert (CTLRL+I on Mac). After invoking the shortcut, all possible generators are offered.


Place your cursor in the class, on the empty line and then hit ALT+Insert. You getter and setter options