在Enterprise Architect中为PHP生成getter和setter


Generate getters and setters for PHP in Enterprise Architect

我正在使用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