classname = $class; parent::__construct($class, $property); $this->parseComment(); } /** * * @param $annotationName String the annotation name * @param $annotationClass String the annotation class * @return void */ public function getAnnotation($annotationName, $annotationClass = null){ return IPPhpDoc::getAnnotation($this->comment, $annotationName, $annotationClass); } private function parseComment(){ // No getDocComment available for properties in php 5.0.3 :( $this->comment = $this->getDocComment(); new IPReflectionCommentParser($this->comment, $this); } } ?>