| Conditions | 5 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function resolveArguments(ReflectionClass $classReflection, array $arguments) |
||
| 45 | { |
||
| 46 | $constructor = $classReflection->getConstructor(); |
||
| 47 | if ($constructor !== null) { |
||
| 48 | $parameters = $constructor->getParameters(); |
||
| 49 | foreach ($parameters as $parameter) { |
||
| 50 | if ( |
||
| 51 | null !== $parameter->getClass() && |
||
| 52 | null !== ($dependency = $this->getDependency($parameter->getClass()->name)) |
||
| 53 | ) { |
||
| 54 | $arguments[$parameter->name] = $dependency; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 59 | return $arguments; |
||
| 60 | } |
||
| 61 | |||
| 78 |