| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class AddWishlistProduct implements AddWishlistProductInterface |
||
| 17 | { |
||
| 18 | /** @var WishlistProductInterface */ |
||
| 19 | private WishlistProductInterface $wishlistProduct; |
||
| 20 | |||
| 21 | /** @var AddToCartCommandInterface */ |
||
| 22 | private AddToCartCommandInterface $cartItem; |
||
| 23 | |||
| 24 | private bool $selected; |
||
| 25 | |||
| 26 | public function getWishlistProduct(): WishlistProductInterface |
||
| 27 | { |
||
| 28 | return $this->wishlistProduct; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setWishlistProduct(WishlistProductInterface $wishlistProduct): void |
||
| 32 | { |
||
| 33 | $this->wishlistProduct = $wishlistProduct; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function isSelected(): bool |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setSelected(bool $selected): void |
||
| 42 | { |
||
| 43 | $this->selected = $selected; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getCartItem(): AddToCartCommandInterface |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setCartItem(AddToCartCommandInterface $cartItem): void |
||
| 54 | } |
||
| 55 | |||
| 56 | } |