| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 24 | 21 | public function createByClassName(string $className): ?object  | 
            |
| 25 |     { | 
            ||
| 26 | 21 |         if (class_exists($className)) { | 
            |
| 27 | 20 |             if (!isset($this->cachedDependencies[$className])) { | 
            |
| 28 | 20 | $this->cachedDependencies[$className] = $this  | 
            |
| 29 | 20 | ->getDependencyResolver()  | 
            |
| 30 | 20 | ->resolveDependencies($className);  | 
            |
| 31 | }  | 
            ||
| 32 | |||
| 33 | /** @psalm-suppress MixedMethodCall */  | 
            ||
| 34 | 20 | return new $className(...$this->cachedDependencies[$className]);  | 
            |
| 35 | }  | 
            ||
| 36 | |||
| 37 | 1 | return null;  | 
            |
| 38 | }  | 
            ||
| 51 |