[FLOW3-general] Lazy question: Annotation for Models to get missing Getter/Setter?
Chris Zepernick
chris at swift-lizard.com
Mon Oct 31 12:59:58 CET 2011
Hi Guys,
the old man is just a little bit evil ;-P
I think what Peter originaly meant was if it is planed to get rid of
those getters and setters, because it kind of grows the models unnecessary.
Most of the time one just defines the properties all together with
their validation, type and stuff, then makes a right click (NetBeans,
Zend, Storm,...) and says "generate getters/setters",.. done.
Boring stuff that has to be done over and over again.
The intention was, to my mind, that if we do all this pre compiling
anyways (for aop and annotations), wouldn´t it be nice if this stuff
would be generated by FLOW3 ?
Just in case we have a property for which no getters and setters have
been defined yet. That would kind of shorten the models to the main things.
Cheers
Chris
Am 28.10.11 16:29, schrieb Bastian Waidelich:
> "Christian Müller (Kitsunet)" wrote:
>
>> Right! And you will miss IDE autocompletion for getters and setters if
>> you add them automagically ;)
>
> automagically, nice ;)
>
> BTW: a compromise would be a little command, that adds getters and
> setters to all models of the specified package..
>
> BTW²: maybe PHP will introduce proper properties at some point..[1]
>
> Bastian
>
> [1] https://wiki.php.net/rfc/propertygetsetsyntax
More information about the FLOW3-general
mailing list