Elzo Valugi Elzo Valugi - 2 years ago 452
PHP Question

phpdoc for constants?

I have this code:

* Days to parse
* @var int
const DAYS_TO_PARSE = 10;

and I don't think that @var use is correct for a constant, and I don't see any @constant available. What is the correct way to do it?

Answer Source

To get them into phpDoc, use:

@const THING

Usual construct:

@const[ant] label [description]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download