Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function create(array $attributeValues) |
||
33 | { |
||
34 | $attributeValuesView = []; |
||
35 | |||
36 | /** @var ProductAttributeValueInterface $attributeValue */ |
||
37 | foreach ($attributeValues as $attributeValue) { |
||
38 | if (!in_array($attributeValue->getCode(), $this->allowedAttributesCodes, true)) { |
||
39 | continue; |
||
40 | } |
||
41 | |||
42 | $attributeValuesView[] = $this->productAttributeValueViewFactory->create($attributeValue); |
||
43 | } |
||
44 | |||
45 | return $attributeValuesView; |
||
46 | } |
||
47 | } |
||
48 |