| 1 | <?php |
||
| 20 | class AnnotatedReflectionMethod extends ReflectionMethod |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Annotation reader |
||
| 24 | * |
||
| 25 | * @var Reader |
||
| 26 | */ |
||
| 27 | private static $annotationReader = null; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Gets a method annotation. |
||
| 31 | * |
||
| 32 | * @param string $annotationName The name of the annotation. |
||
| 33 | * @return mixed The Annotation or NULL, if the requested annotation does not exist. |
||
| 34 | */ |
||
| 35 | public function getAnnotation($annotationName) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Gets the annotations applied to a method. |
||
| 42 | * |
||
| 43 | * @return array An array of Annotations. |
||
| 44 | */ |
||
| 45 | public function getAnnotations() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns an annotation reader |
||
| 52 | * |
||
| 53 | * @return Reader $reader |
||
| 54 | */ |
||
| 55 | private static function getReader() |
||
| 63 | } |
||
| 64 |