在Enterprise Architect中生成PHP的getter和setter [英] Generate getters and setters for PHP in Enterprise Architect

查看:138
本文介绍了在Enterprise Architect中生成PHP的getter和setter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Enterprise Architect制作UML类图并生成PHP5代码.如何为某个类生成getter和setter方法?

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?

推荐答案

<<Property>>构造型添加到要为其创建Getter和Setter的属性中.

Add the <<Property>> Stereotype to the attribute you want to create Getters and Setters for.

有关更多参考,请参见

  • http://www.sparxsystems.com/uml_tool_guide/modeling/attributes.htm and
  • http://www.sparxsystems.com/uml_tool_guide/modeling/createprop.htm

这篇关于在Enterprise Architect中生成PHP的getter和setter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆