| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait InjectableCreator |
||
| 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 Wrapped new $name instance or null if no such class |
||
| 14 | * @throws ClassNotInjectable If $name is not an Injectable |
||
| 15 | */ |
||
| 16 | protected function fromClass(string $name) { |
||
| 31 | } |
||
| 32 | } |