Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function getPostConstruct(ReflectionClass $class): ?ReflectionMethod |
||
49 | { |
||
50 | $methods = $class->getMethods(); |
||
51 | foreach ($methods as $method) { |
||
52 | $annotation = $method->getAnnotation(PostConstruct::class); |
||
53 | if ($annotation instanceof PostConstruct) { |
||
54 | return $method; |
||
55 | } |
||
56 | } |
||
57 | |||
58 | return null; |
||
59 | } |
||
61 |