new ReflectionProperty::getDocComment() method

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185116 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Johannes Schlüter 2005-04-25 19:08:02 +00:00
parent b508d9da17
commit fce688113c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<sect1 id="language.oop5.reflection">
<title>Reflection</title>
<sect2 id="language.oop5.reflection.introduction">
@ -619,11 +619,17 @@ class ReflectionProperty implements Reflector
public mixed getValue(stdclass object)
public void setValue(stdclass object, mixed value)
public ReflectionClass getDeclaringClass()
public string getDocComment()
}
?>
]]>
</programlisting>
</informalexample>
<note>
<simpara>
<function>getDocComment</function> was added in PHP 5.1.0.
</simpara>
</note>
<para>
To introspect a property, you will first have to create an instance
of the <classname>ReflectionProperty</classname> class. You can then