| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ClassCreator |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Resolves dependency from a given class name. Constructor injection will be used if needed. |
||
| 11 | * |
||
| 12 | * @param string $name Name of the class to be created |
||
| 13 | * @return Bean|null New $name instance or null if no such class |
||
| 14 | */ |
||
| 15 | protected function fromClass(string $name) { |
||
| 24 | } |
||
| 25 | } |