diff -r 000000000000 -r 4eba9c11703f web/Zend/Reflection/Property.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Reflection/Property.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,68 @@ +getName()); + if (!$zendReflection instanceof Zend_Reflection_Class) { + require_once 'Zend/Reflection/Exception.php'; + throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class'); + } + unset($phpReflection); + return $zendReflection; + } + + /** + * Get docblock comment + * + * @param string $reflectionClass + * @return Zend_Reflection_Docblock|false False if no docblock defined + */ + public function getDocComment($reflectionClass = 'Zend_Reflection_Docblock') + { + $docblock = parent::getDocComment(); + if (!$docblock) { + return false; + } + + $r = new $reflectionClass($docblock); + if (!$r instanceof Zend_Reflection_Docblock) { + require_once 'Zend/Reflection/Exception.php'; + throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Docblock'); + } + return $r; + } +}