| Total Complexity | 5 | 
| Total Lines | 35 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | class ConstantsBuilder | ||
| 21 | { | ||
| 22 | private static $types = [ | ||
| 23 | 'integer' => 'int', | ||
| 24 | 'double' => 'float', | ||
| 25 | 'string' => 'string', | ||
| 26 | ]; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * @param \PhpParser\Node[] $classAttributes | ||
| 30 | * @return Constant[] | ||
| 31 | */ | ||
| 32 | public function build(array $classAttributes): array | ||
| 43 | } | ||
| 44 | |||
| 45 | 39 | private function determineType(Const_ $constant): ?string | |
| 57 |