What mean the PHP documentation tags : #@+ and #@-
I found this in Zend Framework :
/**#@+
* @access protected
*/
/**
* @var Zend_Mail_Transport_Abstract
* @static
*/
protected static $_defaultTra开发者_开发知识库nsport = null;
...
/**#@-*/
Are these "open" and "close" tags ? Are they supported by phpdoc ? I can't find any documentation about it (and it's not possible to google it)
Thank you.
That string defines a docBlock template.
The "docblock template" is a set of tags that you want applied to all individual docblocks inside the template markers. In your example above, it appears that you want the "@access protected" tag applied to all docblock'd elements inside the markers, starting with the $_defaultTransport element.
In short, it's a shortcut to avoid duplication. In your example, you've saved yourself from duplicating "@access protected" across the docblocks of many class variables.
精彩评论