| 1 | <?php |
||
| 9 | trait ControllerAnnotationExtractorTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @return Reader |
||
| 13 | */ |
||
| 14 | abstract protected function getAnnotationReader(): Reader; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param callable $controller |
||
| 18 | * @param string $annotationClass |
||
| 19 | * |
||
| 20 | * @return null|object |
||
| 21 | */ |
||
| 22 | 13 | protected function getClassAnnotationFromController(callable $controller, string $annotationClass) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param callable $controller |
||
| 36 | * @param string $annotationClass |
||
| 37 | * |
||
| 38 | * @throws \ReflectionException When $controller method does not exist |
||
| 39 | * |
||
| 40 | * @return null|object |
||
| 41 | */ |
||
| 42 | 15 | protected function getMethodAnnotationFromController(callable $controller, string $annotationClass) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param callable $controller |
||
| 59 | * |
||
| 60 | * @return null|object |
||
| 61 | */ |
||
| 62 | 19 | protected function getObjectToReflect(callable $controller) |
|
| 74 | } |
||
| 75 |