Frage

What is the meaning of the following in a php docblock:

#@+

An example in the zend framework code:

/**#@+
 * @const string Version constant numbers
 */
const VERSION_10 = '1.0';
const VERSION_11 = '1.1';
/**#@-*/

Im assuming its used to group related items but cant see for certain.

Also, its syntax is very odd - how does it translate when documentation is generated from it?

War es hilfreich?

Lösung

This is a docblock template, so every documentable element (every const in this example) between the template has the same documentation.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top