Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
36 | private function extractType(?string $comment): void |
||
37 | { |
||
38 | if (preg_match(self::VAR_EXPRESSION, (string) $comment, $matches) === 1) { |
||
39 | $this->attributeType = TypeDeclaration::from(trim($matches[1])); |
||
40 | return; |
||
41 | } |
||
42 | $this->attributeType = TypeDeclaration::absent(); |
||
43 | } |
||
45 |