1 | <?php |
||
34 | class EeVariantObserver extends VariantObserver |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Map's the passed SKU of the parent product to it's PK. |
||
39 | * |
||
40 | * @param string $parentSku The SKU of the parent product |
||
41 | * |
||
42 | * @return integer The primary key used to create relations |
||
43 | */ |
||
44 | 1 | protected function mapParentSku($parentSku) |
|
45 | { |
||
46 | 1 | return $this->mapSkuToRowId($parentSku); |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Return the row ID for the passed SKU. |
||
51 | * |
||
52 | * @param string $sku The SKU to return the row ID for |
||
53 | * |
||
54 | * @return integer The mapped row ID |
||
55 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
56 | */ |
||
57 | 1 | protected function mapSkuToRowId($sku) |
|
61 | } |
||
62 |