1 | <?php |
||
17 | abstract class AbstractMappingProvider |
||
18 | { |
||
19 | /** |
||
20 | * Creates mapping and returns it |
||
21 | * @param array $languages |
||
22 | * @return array |
||
23 | */ |
||
24 | abstract public function build(array $languages); |
||
25 | |||
26 | /** |
||
27 | * Processes mapping attributes data |
||
28 | * Formats them to correct format |
||
29 | * @param array $productAttributesData |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function processMappingAttributesData(array $productAttributesData) |
||
42 | |||
43 | /** |
||
44 | * Gets attribute properties |
||
45 | * Recursive if index type is object or nested |
||
46 | * |
||
47 | * @param array $options |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | private function getAttributeProperties(array $options) |
||
59 | |||
60 | /** |
||
61 | * @param $type |
||
62 | */ |
||
63 | public function resolveProperties($type) |
||
71 | } |