Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function toObject(array $config): PropertyObject |
||
24 | { |
||
25 | $className = $this->popClassName($config); |
||
26 | $this->checkIfSupport($className); |
||
27 | |||
28 | $config = $this->resolve($config); |
||
29 | |||
30 | if (false === class_exists($className)) { |
||
31 | throw new ClassDoesNotExistException($className); |
||
32 | } |
||
33 | |||
34 | return $this->getObject($className, $config); |
||
35 | } |
||
36 | |||
48 |