Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function flattenProperty(Property $property): array |
||
46 | { |
||
47 | $items = []; |
||
48 | /** @var PropertyConfig $hydrator */ |
||
49 | foreach ($this->getHydrators() as $hydrator) { |
||
50 | try { |
||
51 | $items[] = $hydrator->toArray($property); |
||
52 | } catch (UnsupportedItemClassException $exception) { |
||
53 | continue; |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $items; |
||
58 | } |
||
59 | } |
||
60 |