1 | <?php |
||
11 | class ProductBundle implements ProductBundleInterface |
||
12 | { |
||
13 | /** @var int */ |
||
14 | private $id; |
||
15 | |||
16 | /** @var ProductBundleSlotInterface[]|Collection|ArrayCollection */ |
||
17 | private $slots; |
||
18 | |||
19 | /** @var ProductBundleSlotInterface|null */ |
||
20 | private $presentationSlot; |
||
21 | |||
22 | /** @var ProductInterface|null */ |
||
23 | private $product; |
||
24 | |||
25 | /** |
||
26 | * ProductBundle constructor. |
||
27 | */ |
||
28 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * @return int |
||
35 | */ |
||
36 | public function getId(): ?int |
||
40 | |||
41 | /** |
||
42 | * @param ProductBundleSlotInterface $slot |
||
43 | */ |
||
44 | public function addSlot(ProductBundleSlotInterface $slot): void |
||
51 | |||
52 | /** |
||
53 | * @param ProductBundleSlotInterface $slot |
||
54 | */ |
||
55 | public function removeSlot(ProductBundleSlotInterface $slot): void |
||
62 | |||
63 | /** |
||
64 | * @return ProductBundleSlotInterface[]|Collection|ArrayCollection |
||
65 | */ |
||
66 | public function getSlots(): Collection |
||
70 | |||
71 | /** |
||
72 | * @return ProductInterface |
||
73 | */ |
||
74 | public function getProduct(): ?ProductInterface |
||
78 | |||
79 | /** |
||
80 | * @param ProductInterface $product |
||
81 | */ |
||
82 | public function setProduct(ProductInterface $product): void |
||
86 | |||
87 | public function getProductId(): ?int |
||
95 | |||
96 | public function setPresentationSlot(ProductBundleSlotInterface $slot): void |
||
100 | |||
101 | public function getPresentationSlot(): ?ProductBundleSlotInterface |
||
105 | } |
||
106 |