| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function transform(ProductVariantInterface $syliusProductVariant): array |
||
| 21 | { |
||
| 22 | $customAttributes = []; |
||
| 23 | |||
| 24 | /** @var ProductOptionValueInterface $optionValue */ |
||
| 25 | foreach ($syliusProductVariant->getOptionValues() as $optionValue) { |
||
| 26 | $customAttributes[$optionValue->getOptionCode()] = $optionValue->getId(); |
||
| 27 | } |
||
| 28 | |||
| 29 | return $customAttributes; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |