| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class CopySelectedProductsToOtherWishlist |
||
| 17 | { |
||
| 18 | /** @var Collection<WishlistItem> */ |
||
| 19 | private Collection $wishlistProducts; |
||
| 20 | |||
| 21 | private int $destinedWishlistId; |
||
| 22 | |||
| 23 | public function __construct(Collection $wishlistProducts, int $destinedWishlistId) |
||
| 24 | { |
||
| 25 | $this->wishlistProducts = $wishlistProducts; |
||
| 26 | $this->destinedWishlistId = $destinedWishlistId; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getWishlistProducts(): Collection |
||
| 30 | { |
||
| 31 | return $this->wishlistProducts; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getDestinedWishlistId(): int |
||
| 37 | } |
||
| 38 | } |
||
| 39 |