Ejemplo n.º 1
0
 /**
  * Gets multiple annotations of the reflected property
  *
  * If the annotation name is given, will return the Annotation[]
  * If no annotation name is given, all annotations will be read for the reflected property
  *
  * @param $annotation_name string
  * @return Annotation[]|array
  */
 public function getAnnotations($annotation_name = null)
 {
     if (isset($annotation_name)) {
         return $this->getCachedAnnotation($annotation_name, true);
     } else {
         /** @var $this Annoted|Has_Doc_Comment */
         return Parser::allAnnotations($this);
     }
 }