|
ReflectionProperty::getDocCommentGets the property doc comment Description
public stringfalse ReflectionProperty::getDocComment()
Gets the doc comment for a property. ParametersThis function has no parameters. Return Values
The doc comment if it exists, otherwise Examples
Example #1 ReflectionProperty::getDocComment example
The above example will output something similar to: string(53) "/** * @var int The length of the string */"
Example #2 Multiple property declarations If multiple property declarations are preceeded by a single doc comment, the doc comment refers to the first property only.
The above example will output: a: '/** @var string */' b: false See Also
|