« ReflectionClassConstant::getDeclaringClass
ReflectionClassConstant::getModifiers »

ReflectionClassConstant::getDocComment

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::getDocComment — クラス定数のドキュメントコメントを取得する

説明

public function ReflectionClassConstant::getDocComment(): string|false

クラス定数のドキュメントコメントを取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

ドキュメントコメントが存在した場合その文字列。存在しない場合は false を返します。

関連キーワード:
ReflectionClassConstant   ドキュメント   コメント   定数   getDocComment   getDeclaringClass   getModifiers
関連する関数・ページ:
reflectionclassconstant.getdeclaringclass   reflectionclassconstant.getname   reflectionclassconstant.ispublic   reflectionclassconstant.construct   reflectionclassconstant.hastype   reflectionclassconstant.isfinal