示例#1
0
 /**
  * @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;
 }
示例#2
0
 /**
  * @param $name
  * @param $value
  * @return Annotation
  */
 private function createAnnotation($name, $value)
 {
     $annotation = new Annotation();
     $annotation->setName($name);
     $annotation->setValue($value);
     return $annotation;
 }