What mean the PHP documentation tags : #@+ and #@-
문제
I found this in Zend Framework :
/**#@+
* @access protected
*/
/**
* @var Zend_Mail_Transport_Abstract
* @static
*/
protected static $_defaultTransport = 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.
제휴하지 않습니다 StackOverflow