Пример #1
0
 /**
  * Returns all annotations.
  *
  * @return array
  */
 public final function getAnnotations()
 {
     return $this->docComment->getAnnotations();
 }
Пример #2
0
 /**
  * Checks if there is a particular annotation.
  *
  * @param string $name Annotation name
  *
  * @return boolean
  */
 public final function hasAnnotation($name)
 {
     return $this->docComment->hasAnnotation($name);
 }