1 | <?php |
||
32 | class ProductUpdateObserver extends ProductObserver |
||
33 | { |
||
34 | |||
35 | /** |
||
36 | * Initialize the product with the passed data and returns an instance. |
||
37 | * |
||
38 | * @param string $sku The product's SKU |
||
39 | * @param string $createdAt The product's creation date |
||
40 | * @param string $updatedAt The product's last update date |
||
41 | * @param integer $hasOptions Marks the product to has options |
||
42 | * @param integer $requiredOptions Marks the product that some of the options are required |
||
43 | * @param string $typeId The product's type ID |
||
44 | * @param integer $attributeSetId The product's attribute set ID |
||
45 | * |
||
46 | * @return array The initialized product |
||
47 | */ |
||
48 | 2 | public function initializeProduct( |
|
77 | |||
78 | /** |
||
79 | * Load's and return's the product with the passed SKU. |
||
80 | * |
||
81 | * @param string $sku The SKU of the product to load |
||
82 | * |
||
83 | * @return array The product |
||
84 | */ |
||
85 | 2 | public function loadProduct($sku) |
|
89 | } |
||
90 |