1 | <?php |
||
7 | class ProductBlock extends CustomBlock |
||
8 | { |
||
9 | /** |
||
10 | * @var ProductInterface |
||
11 | */ |
||
12 | protected $product; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $productCode; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function getType() |
||
26 | |||
27 | /** |
||
28 | * @return ProductInterface |
||
29 | */ |
||
30 | public function getProduct() |
||
34 | |||
35 | /** |
||
36 | * @param ProductInterface $product |
||
37 | */ |
||
38 | public function setProduct(ProductInterface $product) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getProductCode() |
||
51 | |||
52 | /** |
||
53 | * @param string $productCode |
||
54 | */ |
||
55 | public function setProductCode($productCode) |
||
59 | } |
||
60 |