1 | <?php |
||
37 | class VariantObserver extends AbstractProductImportObserver |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * Will be invoked by the action on the events the listener has been registered for. |
||
42 | * |
||
43 | * @param array $row The row to handle |
||
44 | * |
||
45 | * @return array The modified row |
||
46 | * @see \TechDivision\Import\Product\Observers\ImportObserverInterface::handle() |
||
47 | */ |
||
48 | public function handle(array $row) |
||
102 | |||
103 | /** |
||
104 | * Map's the passed SKU of the parent product to it's PK. |
||
105 | * |
||
106 | * @param string $parentSku The SKU of the parent product |
||
107 | * |
||
108 | * @return integer The primary key used to create relations |
||
109 | */ |
||
110 | public function mapParentSku($parentSku) |
||
114 | |||
115 | /** |
||
116 | * Map's the passed SKU of the child product to it's PK. |
||
117 | * |
||
118 | * @param string $childSku The SKU of the child product |
||
119 | * |
||
120 | * @return integer The primary key used to create relations |
||
121 | */ |
||
122 | public function mapChildSku($childSku) |
||
126 | |||
127 | /** |
||
128 | * Return the entity ID for the passed SKU. |
||
129 | * |
||
130 | * @param string $sku The SKU to return the entity ID for |
||
131 | * |
||
132 | * @return integer The mapped entity ID |
||
133 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
134 | */ |
||
135 | public function mapSkuToEntityId($sku) |
||
139 | |||
140 | /** |
||
141 | * Return's TRUE if the passed ID is the parent one. |
||
142 | * |
||
143 | * @param integer $parentId The parent ID to check |
||
144 | * |
||
145 | * @return boolean TRUE if the passed ID is the parent one |
||
146 | */ |
||
147 | public function isParentId($parentId) |
||
151 | |||
152 | /** |
||
153 | * Set's the ID of the parent product to relate the variant with. |
||
154 | * |
||
155 | * @param integer $parentId The ID of the parent product |
||
156 | * |
||
157 | * @return void |
||
158 | */ |
||
159 | public function setParentId($parentId) |
||
163 | |||
164 | /** |
||
165 | * Return's the ID of the parent product to relate the variant with. |
||
166 | * |
||
167 | * @return integer The ID of the parent product |
||
168 | */ |
||
169 | public function getParentId() |
||
173 | |||
174 | /** |
||
175 | * Return's the store for the passed store code. |
||
176 | * |
||
177 | * @param string $storeCode The store code to return the store for |
||
178 | * |
||
179 | * @return array The requested store |
||
180 | * @throws \Exception Is thrown, if the requested store is not available |
||
181 | */ |
||
182 | public function getStoreByStoreCode($storeCode) |
||
186 | |||
187 | /** |
||
188 | * Return's an array with the available stores. |
||
189 | * |
||
190 | * @return array The available stores |
||
191 | */ |
||
192 | public function getStores() |
||
196 | |||
197 | /** |
||
198 | * Return's the first EAV attribute for the passed option value and store ID. |
||
199 | * |
||
200 | * @param string $optionValue The option value of the EAV attributes |
||
201 | * @param string $storeId The store ID of the EAV attribues |
||
202 | * |
||
203 | * @return array The array with the EAV attribute |
||
204 | */ |
||
205 | public function getEavAttributeByOptionValueAndStoreId($optionValue, $storeId) |
||
209 | |||
210 | /** |
||
211 | * Persist's the passed product relation data and return's the ID. |
||
212 | * |
||
213 | * @param array $productRelation The product relation data to persist |
||
214 | * |
||
215 | * @return void |
||
216 | */ |
||
217 | public function persistProductRelation($productRelation) |
||
221 | |||
222 | /** |
||
223 | * Persist's the passed product super link data and return's the ID. |
||
224 | * |
||
225 | * @param array $productSuperLink The product super link data to persist |
||
226 | * |
||
227 | * @return void |
||
228 | */ |
||
229 | public function persistProductSuperLink($productSuperLink) |
||
233 | |||
234 | /** |
||
235 | * Persist's the passed product super attribute data and return's the ID. |
||
236 | * |
||
237 | * @param array $productSuperAttribute The product super attribute data to persist |
||
238 | * |
||
239 | * @return void |
||
240 | */ |
||
241 | public function persistProductSuperAttribute($productSuperAttribute) |
||
245 | |||
246 | /** |
||
247 | * Persist's the passed product super attribute label data and return's the ID. |
||
248 | * |
||
249 | * @param array $productSuperAttributeLabel The product super attribute label data to persist |
||
250 | * |
||
251 | * @return void |
||
252 | */ |
||
253 | public function persistProductSuperAttributeLabel($productSuperAttributeLabel) |
||
257 | } |
||
258 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.