Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 0 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 12 | public function __construct( |
|
16 | /** |
||
17 | * @var string[] A list of modifiers, for example: `['abstract', 'public']`. |
||
18 | */ |
||
19 | public array $modifiers, |
||
20 | /** |
||
21 | * @var string A name without parentheses. For example: `getInstance`. |
||
22 | */ |
||
23 | public string $name, |
||
24 | /** |
||
25 | * @var ParameterConfig[] A map where key is a {@see ParameterConfig::$name} and value is {@see ParameterConfig} |
||
26 | * instance. |
||
27 | * @psalm-var array<string, ParameterConfig> |
||
28 | */ |
||
29 | public array $parameters, |
||
30 | /** |
||
31 | * @var TypeConfig|null Return type config. `null` means no return type specified. |
||
32 | */ |
||
33 | public ?TypeConfig $returnType, |
||
34 | ) { |
||
35 | 12 | } |
|
49 |