| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class WishlistItem implements WishlistItemInterface |
||
| 17 | { |
||
| 18 | private ?WishlistProductInterface $wishlistProduct; |
||
| 19 | |||
| 20 | private ?AddToCartCommandInterface $cartItem; |
||
| 21 | |||
| 22 | private ?bool $selected; |
||
| 23 | |||
| 24 | public function getWishlistProduct(): ?WishlistProductInterface |
||
| 25 | { |
||
| 26 | return $this->wishlistProduct; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function setWishlistProduct(?WishlistProductInterface $wishlistProduct): void |
||
| 30 | { |
||
| 31 | $this->wishlistProduct = $wishlistProduct; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function isSelected(): ?bool |
||
| 35 | { |
||
| 36 | return $this->selected; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setSelected(?bool $selected): void |
||
| 40 | { |
||
| 41 | $this->selected = $selected; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getCartItem(): ?AddToCartCommandInterface |
||
| 45 | { |
||
| 46 | return $this->cartItem; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function setCartItem(?AddToCartCommandInterface $cartItem): void |
||
| 52 | } |
||
| 53 | } |
||
| 54 |