[Feature Request] Possibility to set the access modifier for properties when exporting entities

0 votes
asked Feb 27, 2013 in Feature Request by renaatdemuynck (840 points)
edited Feb 27, 2013 by ludek.vodicka

It would be handy if you could set the access modifier for properties when exporting entities. If you export now, all properties get the private modifier while in my code I use protected.
You should be able to set a default (per project) and perhaps be able to set it per entity/property.

commented Feb 27, 2013 by ludek.vodicka Skipper developer (140,450 points)

We're already working on extended template system based on CTemplate which enable us to provide more customizations on all generated content (individual setters/getters, invidual comments format, etc.)

So we will also add a way how to customize access modifiers.

commented Feb 27, 2013 by renaatdemuynck (840 points)

Sounds cool! Does that mean I could also let my entities inherit from an AbstractEntity class? (that would have been my next feature request :-) )

commented Feb 27, 2013 by ludek.vodicka Skipper developer (140,450 points)

We have a plans to place several snippet placeholders inside the AST (Abstract syntex tree) of new PHP file which will be configurable.

Right now I'm not sure how far we will be able to provide a configurable behavior, but if it will be possible, we will do it ;-)

Please log in or register to answer this question.

...