Zend框架2 - 教义2 - 使用Documentor标签 [英] Zend Framework 2 - Doctrine 2 - Use of Documentor Tags

查看:169
本文介绍了Zend框架2 - 教义2 - 使用Documentor标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的 Doctrine Zend 。我意识到,在几乎所有的实体模型中(我都读过教程),我看到这些文档标签,如 @var @property

I'm new to Doctrine and Zend. I realized that in nearly all entity models (whereever I read a tutorial) I saw these documentor tags like @var or @property.

他们不是必需的,对吧?那么把它们留下来是件坏事呢?对我的实体中的每个属性添加和更改它们真的很耗时。

They aren't required, right? So is it a bad thing to leave them out? It's really time-consuming adding and altering them for every attribute in my Entities.

推荐答案

这只是一个很好的编程和记录你的代码它可以帮助您的IDE更好地运行,并使其他人(包括自己在一年之后)更容易地维护您的代码。

This is simply a good habbit of programming and documenting your code. It helps your IDE to function better and makes it easier for other people (including yourself in a year from now on) to maintain your code.

这篇关于Zend框架2 - 教义2 - 使用Documentor标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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