phpDoc class constants documentation

mck89 picture mck89 · Oct 8, 2010 · Viewed 19.1k times · Source

How do I document class constants for phpDoc? I've read the manual but I can't find anything about them.

Answer

ashnazg picture ashnazg · Oct 8, 2010

Constants only need a docblock that contains the description. No specific tag is necessary. The code parser itself identifies constants and displays them as such in the generated documentation (here's an example).