| 1 | <?php  | 
            ||
| 17 | class ProductBundleSlot implements ProductBundleSlotInterface, ResourceInterface  | 
            ||
| 18 | { | 
            ||
| 19 | /** @var int */  | 
            ||
| 20 | private $id;  | 
            ||
| 21 | |||
| 22 | /** @var string */  | 
            ||
| 23 | private $name = '';  | 
            ||
| 24 | |||
| 25 | /** @var int */  | 
            ||
| 26 | private $position = 0;  | 
            ||
| 27 | |||
| 28 | /** @var ProductBundleInterface */  | 
            ||
| 29 | private $bundle;  | 
            ||
| 30 | |||
| 31 | /** @var Collection<ProductInterface> */  | 
            ||
| 32 | private $products;  | 
            ||
| 33 | |||
| 34 | public function __construct()  | 
            ||
| 38 | |||
| 39 | public function getId(): int  | 
            ||
| 43 | |||
| 44 | public function getName(): string  | 
            ||
| 48 | |||
| 49 | public function setName(string $name): void  | 
            ||
| 53 | |||
| 54 | public function getPosition(): int  | 
            ||
| 58 | |||
| 59 | public function setPosition(int $position): void  | 
            ||
| 63 | |||
| 64 | public function getBundle(): ?ProductBundleInterface  | 
            ||
| 68 | |||
| 69 | public function setBundle(ProductBundleInterface $bundle): void  | 
            ||
| 73 | |||
| 74 | public function getProducts(): Collection  | 
            ||
| 78 | |||
| 79 | public function addProduct(ProductInterface $product): void  | 
            ||
| 83 | }  | 
            ||
| 84 |