Feature #10312

Autogenerate setters and getters

Added by Falk Kühnel about 11 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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.

#1

Updated by Sascha Egerer about 10 years ago

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

#2

Updated by Christian Müller over 9 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