Here's a utility I created that generates getter and setter methods for a PHP class. Copy and paste your PHP class into the textbox, then click generate. It uses a regular expression to identify the private and protected fields and generates a getter/setter pair for each. You can also customize the indentation and newline preference of the generated code:
No comments:
Post a Comment