Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 1 | protected function configureParameters() |
|
25 | { |
||
26 | 1 | $parameters = []; |
|
27 | |||
28 | 1 | $reflectionClass = new \ReflectionClass($this->getObjectFqcn()); |
|
29 | 1 | $constructor = $reflectionClass->getConstructor(); |
|
30 | |||
31 | 1 | foreach ($constructor->getParameters() as $reflectionParameter) { |
|
32 | 1 | $parameters[$reflectionParameter->getName()] = ($reflectionParameter->isDefaultValueAvailable()) ? $reflectionParameter->getDefaultValue() : null; |
|
33 | } |
||
34 | |||
35 | 1 | return $parameters; |
|
36 | } |
||
37 | } |
||
38 |