| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | 2 | public function resolve($service, ArgumentBuilder $builder) |
|
| 12 | { |
||
| 13 | 2 | $builder->setParams($service->getParams()); |
|
| 14 | |||
| 15 | 2 | $arguments = $builder->getArguments(); |
|
| 16 | |||
| 17 | 2 | if (!isset($this->instances[$service->getName()])) { |
|
| 18 | 2 | $this->instances[$service->getName()] = (new ReflectionClass($service->getClass())) |
|
| 19 | 2 | ->newInstanceArgs($arguments); |
|
| 20 | } |
||
| 21 | |||
| 22 | 2 | return $this->instances[$service->getName()]; |
|
| 23 | } |
||
| 24 | |||
| 39 |