Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function constructorParameters(): array |
||
46 | { |
||
47 | if (!$this->hasConstructor()) { |
||
48 | return []; |
||
49 | } |
||
50 | |||
51 | $constructors = array_filter($this->functions, function (plPhpFunction $function) { |
||
52 | return $function->isConstructor(); |
||
53 | }); |
||
54 | |||
55 | return reset($constructors)->params; |
||
56 | } |
||
63 |