1 | <?php |
||
12 | class ProductAttributeHelper |
||
13 | { |
||
14 | /** |
||
15 | * @var AttributeRepository |
||
16 | */ |
||
17 | private $attributeRepository; |
||
18 | |||
19 | /** |
||
20 | * @param AttributeRepository $attributeRepository |
||
21 | */ |
||
22 | public function __construct(AttributeRepository $attributeRepository) |
||
26 | |||
27 | /** |
||
28 | * Get from repository codes of scopable attributes |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getScopableAttributes() |
||
37 | |||
38 | /** |
||
39 | * Get from repository codes of localizable attributes |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getLocalizableAttributes() |
||
48 | |||
49 | /** |
||
50 | * Get from repository codes of price attributes |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getPriceAttributes() |
||
60 | |||
61 | /** |
||
62 | * @param $attributesCollection |
||
63 | * @return array |
||
64 | */ |
||
65 | private function prepareAttributesList($attributesCollection) |
||
78 | } |
||
79 |