1 | <?php |
||
37 | class VariantSuperAttributeObserver extends AbstractProductImportObserver |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * The ID of the actual store to use. |
||
42 | * |
||
43 | * @var integer |
||
44 | */ |
||
45 | protected $storeId; |
||
46 | |||
47 | /** |
||
48 | * The EAV attribute to handle. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | protected $eavAttribute; |
||
53 | |||
54 | /** |
||
55 | * The tempoarary stored product super attribute ID. |
||
56 | * |
||
57 | * @var integer |
||
58 | */ |
||
59 | protected $productSuperAttributeId; |
||
60 | |||
61 | /** |
||
62 | * Will be invoked by the action on the events the listener has been registered for. |
||
63 | * |
||
64 | * @param array $row The row to handle |
||
65 | * |
||
66 | * @return array The modified row |
||
67 | * @see \TechDivision\Import\Product\Observers\ImportObserverInterface::handle() |
||
68 | */ |
||
69 | public function handle(array $row) |
||
81 | |||
82 | /** |
||
83 | * Process the observer's business logic. |
||
84 | * |
||
85 | * @return array The processed row |
||
86 | */ |
||
87 | protected function process() |
||
122 | |||
123 | /** |
||
124 | * Prepare the product super attribute attributes that has to be persisted. |
||
125 | * |
||
126 | * @return array The prepared product attribute attributes |
||
127 | */ |
||
128 | protected function prepareProducSuperAttributeAttributes() |
||
146 | |||
147 | /** |
||
148 | * Prepare the product super attribute label attributes that has to be persisted. |
||
149 | * |
||
150 | * @return array The prepared product super attribute label attributes |
||
151 | */ |
||
152 | protected function prepareProductSuperAttributeLabelAttributes() |
||
173 | |||
174 | /** |
||
175 | * Initialize the product super attribute with the passed attributes and returns an instance. |
||
176 | * |
||
177 | * @param array $attr The product super attribute attributes |
||
178 | * |
||
179 | * @return array The initialized product super attribute |
||
180 | */ |
||
181 | protected function initializeProductSuperAttribute(array $attr) |
||
185 | |||
186 | /** |
||
187 | * Initialize the product super attribute label with the passed attributes and returns an instance. |
||
188 | * |
||
189 | * @param array $attr The product super attribute label attributes |
||
190 | * |
||
191 | * @return array The initialized product super attribute label |
||
192 | */ |
||
193 | protected function initializeProductSuperAttributeLabel(array $attr) |
||
197 | |||
198 | /** |
||
199 | * Map's the passed SKU of the parent product to it's PK. |
||
200 | * |
||
201 | * @param string $parentSku The SKU of the parent product |
||
202 | * |
||
203 | * @return integer The primary key used to create relations |
||
204 | */ |
||
205 | protected function mapParentSku($parentSku) |
||
209 | |||
210 | /** |
||
211 | * Return the entity ID for the passed SKU. |
||
212 | * |
||
213 | * @param string $sku The SKU to return the entity ID for |
||
214 | * |
||
215 | * @return integer The mapped entity ID |
||
216 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
217 | */ |
||
218 | protected function mapSkuToEntityId($sku) |
||
222 | |||
223 | /** |
||
224 | * Return's TRUE if the passed ID is the parent one. |
||
225 | * |
||
226 | * @param integer $parentId The parent ID to check |
||
227 | * |
||
228 | * @return boolean TRUE if the passed ID is the parent one |
||
229 | */ |
||
230 | protected function isParentId($parentId) |
||
234 | |||
235 | /** |
||
236 | * Set's the ID of the parent product to relate the variant with. |
||
237 | * |
||
238 | * @param integer $parentId The ID of the parent product |
||
239 | * |
||
240 | * @return void |
||
241 | */ |
||
242 | protected function setParentId($parentId) |
||
246 | |||
247 | /** |
||
248 | * Return's the ID of the parent product to relate the variant with. |
||
249 | * |
||
250 | * @return integer The ID of the parent product |
||
251 | */ |
||
252 | protected function getParentId() |
||
256 | |||
257 | /** |
||
258 | * Return's the store for the passed store code. |
||
259 | * |
||
260 | * @param string $storeCode The store code to return the store for |
||
261 | * |
||
262 | * @return array The requested store |
||
263 | * @throws \Exception Is thrown, if the requested store is not available |
||
264 | */ |
||
265 | protected function getStoreByStoreCode($storeCode) |
||
269 | |||
270 | /** |
||
271 | * Return's an array with the available stores. |
||
272 | * |
||
273 | * @return array The available stores |
||
274 | */ |
||
275 | protected function getStores() |
||
279 | |||
280 | /** |
||
281 | * Return's the first EAV attribute for the passed option value and store ID. |
||
282 | * |
||
283 | * @param string $optionValue The option value of the EAV attributes |
||
284 | * @param string $storeId The store ID of the EAV attribues |
||
285 | * |
||
286 | * @return array The array with the EAV attribute |
||
287 | */ |
||
288 | protected function getEavAttributeByOptionValueAndStoreId($optionValue, $storeId) |
||
292 | |||
293 | /** |
||
294 | * Persist's the passed product super attribute data and return's the ID. |
||
295 | * |
||
296 | * @param array $productSuperAttribute The product super attribute data to persist |
||
297 | * |
||
298 | * @return void |
||
299 | */ |
||
300 | protected function persistProductSuperAttribute($productSuperAttribute) |
||
304 | |||
305 | /** |
||
306 | * Persist's the passed product super attribute label data and return's the ID. |
||
307 | * |
||
308 | * @param array $productSuperAttributeLabel The product super attribute label data to persist |
||
309 | * |
||
310 | * @return void |
||
311 | */ |
||
312 | protected function persistProductSuperAttributeLabel($productSuperAttributeLabel) |
||
316 | } |
||
317 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.