Generate getters and setters for PHP in Enterprise Architect

馋奶兔 提交于 2019-12-10 20:04:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!