Elzo Valugi Elzo Valugi - 1 year ago 66
PHP Question

What is the correct way to write PHPDocs for constants?

I have this code:

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

I don't think that using
is correct for a constant and I don't see any
PHPDoc tag. What is the correct way to do this?

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