ReflectionClassConstant::getDocComment

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::getDocCommentGets doc comments

說明

public ReflectionClassConstant::getDocComment(): string|false

Gets doc comments from a class constant.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

The doc comment if it exists, otherwise false