| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 9 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 |     protected function fromClass(string $name) { | 
            ||
| 16 | if (class_exists($name, true) === false)  | 
            ||
| 17 | return null;  | 
            ||
| 18 | |||
| 19 | if (method_exists($name, '__construct') === false)  | 
            ||
| 20 | return new Bean($name, new $name);  | 
            ||
| 21 | |||
| 22 | $method = new \ReflectionMethod($name, '__construct');  | 
            ||
| 23 | return new Bean($name, new $name(...$this->autowire($method)));  | 
            ||
| 24 | }  | 
            ||
| 25 | }  |