From fce688113c5da95d6635c02c645fd78fbe0ac601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Mon, 25 Apr 2005 19:08:02 +0000 Subject: [PATCH] new ReflectionProperty::getDocComment() method git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185116 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/reflection.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/language/oop5/reflection.xml b/language/oop5/reflection.xml index 79743f5178..61571887a0 100644 --- a/language/oop5/reflection.xml +++ b/language/oop5/reflection.xml @@ -1,5 +1,5 @@ - + Reflection @@ -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() } ?> ]]> + + + getDocComment was added in PHP 5.1.0. + + To introspect a property, you will first have to create an instance of the ReflectionProperty class. You can then