1 | <?php |
||
17 | class ProductBundle implements ProductBundleInterface |
||
18 | { |
||
19 | /** @var int */ |
||
20 | private $id; |
||
21 | |||
22 | /** @var ProductBundleSlotInterface[]|Collection|ArrayCollection */ |
||
23 | private $slots; |
||
24 | |||
25 | /** @var ProductBundleSlotInterface|null */ |
||
26 | private $presentationSlot; |
||
27 | |||
28 | /** @var ProductInterface|null */ |
||
29 | private $product; |
||
30 | |||
31 | /** |
||
32 | * ProductBundle constructor. |
||
33 | */ |
||
34 | public function __construct() |
||
38 | |||
39 | public function getId(): ?int |
||
43 | |||
44 | public function addSlot(ProductBundleSlotInterface $slot): void |
||
51 | |||
52 | public function removeSlot(ProductBundleSlotInterface $slot): void |
||
59 | |||
60 | /** |
||
61 | * @return ProductBundleSlotInterface[]|Collection|ArrayCollection |
||
62 | */ |
||
63 | public function getSlots(): Collection |
||
67 | |||
68 | public function getProduct(): ?ProductInterface |
||
72 | |||
73 | public function setProduct(ProductInterface $product): void |
||
77 | |||
78 | public function getProductId(): ?int |
||
86 | |||
87 | public function setPresentationSlot(?ProductBundleSlotInterface $slot): void |
||
91 | |||
92 | public function getPresentationSlot(): ?ProductBundleSlotInterface |
||
96 | } |
||
97 |