ReflectionProperty::getDocComment
Gets the property doc comment
&reftitle.description;
public stringfalseReflectionProperty::getDocComment
Gets the doc comment for a property.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
The doc comment if it exists, otherwise &false;.
&reftitle.examples;
ReflectionProperty::getDocComment example
getDocComment());
?>
]]>
&example.outputs.similar;
Multiple property declarations
If multiple property declarations are preceeded by a single doc comment,
the doc comment refers to the first property only.
getProperties() as $property) {
echo $property->getName() . ': ' . var_export($property->getDocComment(), true) . PHP_EOL;
}
?>
]]>
&example.outputs;
&reftitle.seealso;
ReflectionProperty::getModifiers
ReflectionProperty::getName
ReflectionProperty::getValue