Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | public function build(array $classAttributes): array |
||
35 | { |
||
36 | 78 | $attributes = array_filter($classAttributes, function ($attribute) { |
|
37 | 69 | return $attribute instanceof Property; |
|
38 | 78 | }); |
|
39 | |||
40 | 78 | return array_map(function (Property $attribute) { |
|
41 | return [ |
||
42 | 60 | "\${$attribute->props[0]->name}", |
|
43 | 60 | $this->resolveVisibility($attribute), |
|
44 | 60 | $attribute->getDocComment() |
|
45 | ]; |
||
46 | 78 | }, $this->runFilters($attributes)); |
|
47 | } |
||
49 |