| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function getInstance(string $className, array $givenConstructorArguments = []) |
||
| 29 | { |
||
| 30 | if (isset($this->instances[$className])) { |
||
| 31 | return $this->instances[$className]; |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->instances[$className] = $this->container->getInstance($className, $givenConstructorArguments); |
||
| 35 | } |
||
| 37 |