Total Complexity | 4 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | final class NetteReflectionEngine implements \MyTester\IAnnotationsReaderEngine { |
||
16 | public function hasAnnotation(string $name, $class, string $method = null): bool { |
||
17 | if($method !== null) { |
||
18 | $reflection = new Method($class, $method); |
||
19 | } else { |
||
20 | $reflection = ClassType::from($class); |
||
21 | } |
||
22 | return $reflection->hasAnnotation($name); |
||
23 | } |
||
24 | |||
25 | public function getAnnotation(string $name, $class, string $method = null) { |
||
32 | } |
||
33 | } |
||
34 | ?> |