Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function createProperty(array $config): Property |
||
27 | { |
||
28 | $instance = null; |
||
29 | /** @var PropertyConfig $hydrator */ |
||
30 | foreach ($this->getHydrators() as $hydrator) { |
||
31 | try { |
||
32 | $instance = $hydrator->toObject($config); |
||
33 | } catch (UnsupportedItemClassException $exception) { |
||
34 | continue; |
||
35 | } |
||
36 | } |
||
37 | |||
38 | return $instance; |
||
39 | } |
||
40 | |||
60 |