可以在 PHP 源代码生成的图表中显示组合关系吗?
我测试了几个 UML 应用程序是否可以在从 PHP 源代码生成的 UML 图中显示组合关系,结果是它们不能。
我知道这是 PHP 的一个典型问题,因为我们在编码时没有声明数据类型,因此 UML 应用程序很难知道实例变量是否是对对象的引用。
我也测试了nWire,结果相同。
难道永远不会有应用程序能够向我们展示所有对象关系的完整映射,而不仅仅是继承吗?
我认为遗憾的是您无法很好地了解应用程序的所有关系。因为当我使用开源解决方案时,我总是想知道对象之间是如何相关的。
也许我们可以对实例变量进行注释,告诉软件这是对对象的引用?但这意味着地图软件正在使用此解决方案。
我觉得遗憾的是 nWire/视觉范式不能给我们一个完整的地图:(
i have tested several UML applications for whether they could show composition relationships in the UML diagrams generated form the PHP source code or not, and the result is they can't.
i know that this is a typical problem for PHP cause we don't declare a data type when we code, so it's difficult for the UML applications to know if an instance variable is a reference to an object or not.
i also tested nWire with the same result.
will there never be applications that could show us a complete map over all object relationships more than just inheritance?
i think it's a pity that you can't have a good view over all the relationships for an application. cause when i use an open source solution, i always want to know how the objects are related to each other.
maybe we could make comments for the instance variable telling the software that this is an reference to an object? but that would mean that the mapping software is using this solution.
i feel its a pity nWire/visual paradigm can't give us a complete map:(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论