问题
I'm using Enterprise Architect to make a UML class diagram and generate PHP5 code. How can I generate getter and setter methods for a certain class?
回答1:
Add the <<Property>>
Stereotype to the attribute you want to create Getters and Setters for.
For further reference see
- http://www.sparxsystems.com/uml_tool_guide/modeling/attributes.htm and
- http://www.sparxsystems.com/uml_tool_guide/modeling/createprop.htm
来源:https://stackoverflow.com/questions/15447025/generate-getters-and-setters-for-php-in-enterprise-architect