public function __construct($className, $name) { $classReflector = new Customweb_Annotation_ReflectionAnnotatedClass($className); $this->name = $name; $this->className = $className; // TODO: Make hasMethod etc. also working with parant classes. if ($classReflector->hasMethod('get' . Customweb_Core_Util_String::ucFirst($name))) { $this->getMethodReflector = new Customweb_Annotation_ReflectionAnnotatedMethod($className, 'get' . Customweb_Core_Util_String::ucFirst($name)); } if ($classReflector->hasMethod('set' . Customweb_Core_Util_String::ucFirst($name))) { $this->setMethodReflector = new Customweb_Annotation_ReflectionAnnotatedMethod($className, 'set' . Customweb_Core_Util_String::ucFirst($name)); } if ($classReflector->hasProperty($name)) { $this->propertyReflector = new Customweb_Annotation_ReflectionAnnotatedProperty($className, $name); } }