What are the specific guidelines for documenting class constants in PHP for automatic documentation generation tools?

When documenting class constants in PHP for automatic documentation generation tools, it is important to follow a specific format to ensure clarity and consistency in the generated documentation. One common approach is to use PHPDoc comments above the constant declaration, providing a brief description of the constant and any relevant details. This helps the automatic documentation tool accurately capture and display information about the class constants.

/**
 * Description of the constant.
 */
class MyClass {
    /**
     * Description of the constant.
     */
    const MY_CONSTANT = 'value';
}