/** * @param $annotationPart * @return Annotation */ private function createByPart($annotationPart) { $annotationName = $this->getName($annotationPart); $annotationValue = $this->getValue($annotationName, $annotationPart); $annotation = new Annotation(); $annotation->setName($annotationName); $annotation->setValue($annotationValue); return $annotation; }
/** * @param $name * @param $value * @return Annotation */ private function createAnnotation($name, $value) { $annotation = new Annotation(); $annotation->setName($name); $annotation->setValue($value); return $annotation; }