Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | public function build(array $classAttributes): array |
||
33 | { |
||
34 | 96 | $constants = array_filter($classAttributes, function ($attribute) { |
|
35 | 84 | return $attribute instanceof ClassConst; |
|
36 | 96 | }); |
|
37 | 96 | return array_map(function (ClassConst $constant) { |
|
38 | 39 | return new Constant( |
|
39 | 39 | $constant->consts[0]->name, |
|
40 | 39 | TypeDeclaration::from($this->determineType($constant->consts[0])) |
|
41 | ); |
||
42 | 96 | }, $constants); |
|
43 | } |
||
57 |