| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 8 | private function __construct(mixed $definition) |
|
| 41 | { |
||
| 42 | 8 | if (is_object($definition) && !is_callable($definition)) { |
|
| 43 | 1 | throw new InvalidConfigException('DynamicReference don\'t support object as definition.'); |
|
| 44 | } |
||
| 45 | |||
| 46 | 7 | $this->definition = Normalizer::normalize($definition); |
|
| 47 | } |
||
| 64 |