1 | <?php |
||
13 | class ProductBundle implements ProductBundleInterface, ResourceInterface, CodeAwareInterface |
||
14 | { |
||
15 | /** @var int */ |
||
16 | private $id; |
||
17 | |||
18 | /** @var string|null */ |
||
19 | private $code; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $name; |
||
23 | |||
24 | /** @var ProductBundleSlotInterface[]|Collection|ArrayCollection */ |
||
25 | private $slots; |
||
26 | |||
27 | /** @var ProductBundleSlotInterface|null */ |
||
28 | private $presentationSlot; |
||
29 | |||
30 | /** @var ProductInterface|null */ |
||
31 | private $product; |
||
32 | |||
33 | /** |
||
34 | * ProductBundle constructor. |
||
35 | */ |
||
36 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * @return int |
||
43 | */ |
||
44 | public function getId(): ?int |
||
48 | |||
49 | /** |
||
50 | * @return string|null |
||
51 | */ |
||
52 | public function getCode(): ?string |
||
56 | |||
57 | /** |
||
58 | * @param string|null $code |
||
59 | */ |
||
60 | public function setCode(?string $code): void |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getName(): ?string |
||
72 | |||
73 | /** |
||
74 | * @param string $name |
||
75 | */ |
||
76 | public function setName(?string $name): void |
||
80 | |||
81 | /** |
||
82 | * @param ProductBundleSlotInterface $slot |
||
83 | */ |
||
84 | public function addSlot(ProductBundleSlotInterface $slot): void |
||
88 | |||
89 | /** |
||
90 | * @return ProductBundleSlotInterface[]|Collection|ArrayCollection |
||
91 | */ |
||
92 | public function getSlots(): Collection |
||
96 | |||
97 | /** |
||
98 | * @return ProductInterface |
||
99 | */ |
||
100 | public function getProduct(): ?ProductInterface |
||
104 | |||
105 | /** |
||
106 | * @param ProductInterface $product |
||
107 | */ |
||
108 | public function setProduct(ProductInterface $product): void |
||
112 | |||
113 | public function getProductId(): ?int |
||
121 | |||
122 | public function setPresentationSlot(ProductBundleSlotInterface $slot): void |
||
126 | |||
127 | public function getPresentationSlot(): ?ProductBundleSlotInterface |
||
131 | } |
||
132 |