diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Reflection/Property.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Reflection/Property.php Fri Mar 11 15:05:35 2011 +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; + } +}