| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function fromMethod(string $name) { |
||
| 17 | if (method_exists($this->config, $name) === false) |
||
| 18 | return null; |
||
| 19 | |||
| 20 | $method = $this->configReflClass->getMethod($name); |
||
| 21 | $value = $this->config->$name(...$this->autowire($method)); |
||
|
|
|||
| 22 | return ($value instanceof Bean) ? $value : new Bean($name, $value); |
||
| 23 | } |
||
| 24 | } |