Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
14 | 48 | public function build(array $classAttributes): array |
|
15 | { |
||
16 | 48 | $attributes = []; |
|
17 | 48 | foreach ($classAttributes as $attribute) { |
|
18 | 39 | if (!($attribute instanceof Property)) { |
|
19 | 33 | continue; |
|
20 | } |
||
21 | 33 | $attributes[] = [ |
|
22 | 33 | "\${$attribute->props[0]->name}", |
|
23 | 33 | $this->resolveVisibility($attribute), |
|
24 | 33 | $attribute->getDocComment() |
|
25 | ]; |
||
26 | } |
||
27 | 48 | return $attributes; |
|
28 | } |
||
43 |