Getter / Setter Method Generator for PHP:

Enter a space-separates list of class members:


Name of the internal variable:


Your Getter / Setter Methods:

Options: Show Comment Stubs:
Use variable name in 'setter' methods:
Print internal class variable declaration

Variable Style:
underscore_delimited

What is this tool? Object oriented languages are great, but constantly writing getter and setter methods for these classes gets really old, really quickly.

A solution? The GetterSetterGenerator! Simply enter a whitespace-delineated list of your member variable names and the tool will generate generic getter and setter methods for these member variables. Just copy-and-paste the output into your editor and get going just a little faster...

Like it? Leave a Comment!