Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
46 | public function resolveForAttribute(?string $attributeComment, UseStatements $useStatements): TypeDeclaration |
||
47 | { |
||
48 | if ($attributeComment === null) { |
||
49 | return TypeDeclaration::absent(); |
||
50 | } |
||
51 | |||
52 | $attributeType = $this->factory->attributeTypeFrom($attributeComment); |
||
53 | |||
54 | return $attributeType instanceof TagType ? $attributeType->resolve($useStatements) : TypeDeclaration::absent(); |
||
55 | } |
||
57 |