*/ class ezcReflectionAnnotationFactory { /** * Don't allow objects, it is just a static factory */ // @codeCoverageIgnoreStart private function __construct() {} // @codeCoverageIgnoreEnd /** * @param string $type * @param string[] $line array of words * @return ezcReflectionAnnotation */ static public function createAnnotation($type, $line) { $annotationClassName = 'ezcReflectionAnnotation' . ucfirst($type); $annotation = null; if (!empty($type) and class_exists($annotationClassName)) { $annotation = new $annotationClassName($line); } else { $annotation = new ezcReflectionAnnotation($line); } return $annotation; } } ?>