我正在使用Enterprise Architect制作UML类图并生成PHP5代码。如何为某个类生成getter和setter方法?
将<<Property>>
Stereotype添加到您想要为其创建getter和setter的属性中。
进一步参考参见
- http://www.sparxsystems.com/uml_tool_guide/modeling/attributes.htm
- 和
- http://www.sparxsystems.com/uml_tool_guide/modeling/createprop.htm