Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class ConstantsBuilder |
||
16 | { |
||
17 | private static $types = [ |
||
18 | 'integer' => 'int', |
||
19 | 'double' => 'float', |
||
20 | 'string' => 'string', |
||
21 | ]; |
||
22 | |||
23 | /** @param \PhpParser\Node[] $classAttributes */ |
||
24 | public function build(array $classAttributes): array |
||
35 | } |
||
36 | |||
37 | 39 | private function determineType(Const_ $constant): ?string |
|
50 |