Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function getConstructAnnotation(): ?ConstructAnnotation |
||
43 | { |
||
44 | $annotations = $this->annotations->filter(function (AnnotationInterface $annotation) { |
||
45 | return $annotation->getType() === AnnotationInterface::TYPE_CONSTRUCT; |
||
46 | }); |
||
47 | if ($annotations->isEmpty()) { |
||
48 | return null; |
||
49 | } |
||
50 | return $annotations->first(); |
||
51 | } |
||
53 |