| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class AddWishlistProduct |
||
| 11 | { |
||
| 12 | /** @var WishlistProductInterface */ |
||
| 13 | private WishlistProductInterface $wishlistProduct; |
||
| 14 | |||
| 15 | /** @var AddToCartCommandInterface */ |
||
| 16 | private AddToCartCommandInterface $cartItem; |
||
| 17 | |||
| 18 | private bool $selected; |
||
| 19 | |||
| 20 | public function getWishlistProduct(): WishlistProductInterface |
||
| 21 | { |
||
| 22 | return $this->wishlistProduct; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function setWishlistProduct(WishlistProductInterface $wishlistProduct): void |
||
| 26 | { |
||
| 27 | $this->wishlistProduct = $wishlistProduct; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function isSelected(): bool |
||
| 33 | } |
||
| 34 | |||
| 35 | public function setSelected(bool $selected): void |
||
| 36 | { |
||
| 37 | $this->selected = $selected; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getCartItem(): AddToCartCommandInterface |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setCartItem(AddToCartCommandInterface $cartItem): void |
||
| 48 | } |
||
| 49 | |||
| 50 | } |
||
| 52 |