1 | <?php |
||
36 | class ProductValueLoader implements LoaderInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The column name to load the values for. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $columnName; |
||
45 | |||
46 | /** |
||
47 | * The available values. |
||
48 | * |
||
49 | * @var array |
||
50 | */ |
||
51 | protected $values = array(); |
||
52 | |||
53 | /** |
||
54 | * The registry loader instance. |
||
55 | * |
||
56 | * @var \TechDivision\Import\Loaders\LoaderInterface |
||
57 | */ |
||
58 | protected $registryLoader; |
||
59 | |||
60 | /** |
||
61 | * Construct that initializes the iterator with the product processor instance. |
||
62 | * |
||
63 | * @param \TechDivision\Import\Loaders\LoaderInterface $registryLoader The registry loader instance |
||
64 | * @param \TechDivision\Import\Product\Services\ProductBunchProcessorInterface $productProcessor The product processor instance |
||
65 | * @param string $columName The column name to load the values for |
||
66 | */ |
||
67 | public function __construct(LoaderInterface $registryLoader, ProductBunchProcessorInterface $productProcessor, $columName = MemberNames::SKU) |
||
79 | |||
80 | /** |
||
81 | * Loads and returns data. |
||
82 | * |
||
83 | * @return \ArrayAccess The array with the data |
||
84 | */ |
||
85 | public function load() |
||
108 | |||
109 | /** |
||
110 | * The registry loader instance. |
||
111 | * |
||
112 | * @return \TechDivision\Import\Loaders\LoaderInterface The loader instance |
||
113 | */ |
||
114 | protected function getRegistryLoader() |
||
118 | } |
||
119 |