Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function getRoutes(\ReflectionClass $class): array |
||
19 | { |
||
20 | $routes = []; |
||
21 | |||
22 | foreach ($this->getClassAnnotations($class) as $annotation) { |
||
23 | if (!$this->isSupported($annotation)) { |
||
24 | continue; |
||
25 | } |
||
26 | |||
27 | $routes[$annotation->name] = $annotation; |
||
28 | } |
||
29 | |||
30 | return $routes; |
||
31 | } |
||
38 |