public function instantiateAnnotation($class, $parameters, $targetReflection = false) { $class = Addendum::resolveClassName($class); if (is_subclass_of($class, 'zool\\vendor\\addendum\\Annotation') && !Addendum::ignores($class) || $class == 'zool\\vendor\\addendum\\Annotation') { $annotationReflection = new \ReflectionClass($class); return $annotationReflection->newInstance($parameters, $targetReflection); } return false; }