Feature #10312

Autogenerate setters and getters

Added by Falk Kühnel almost 5 years ago. Updated over 3 years ago.

Status:Rejected Start date:2010-10-18
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No

Description

I like the synthesize functionality from objective-c to autogenerate setters and getters for properties.

Would you think it useful to have such a feature for properties in FLOW3? I would like to simply add a @synthesize comment to autogenerate setters and getters in the proxy class. No functions will be generated if the corresponding function already exists.

I personally would love that feature and it would help to have a much less cluttered code.

History

#1 Updated by Sascha Egerer almost 4 years ago

I don't like this idea. You will have no code completion in your IDE

#2 Updated by Christian Müller over 3 years ago

  • Status changed from New to Rejected
  • Has patch set to No

Yep, just use your IDE to generate the getters and setters, then you benefit from code completion. If you don't like that at all you could create the functionality by AOP yourself, but we don't want to intergrate that into the core.

Also available in: Atom PDF