1 | <?php |
||
15 | final class AddProductToCartCommandHandler extends CommandHandler |
||
16 | { |
||
17 | /** |
||
18 | * @var RepositoryInterface |
||
19 | */ |
||
20 | private $cartRepository; |
||
21 | |||
22 | /** |
||
23 | * @param RepositoryInterface $cartRepository |
||
24 | */ |
||
25 | public function __construct(RepositoryInterface $cartRepository) |
||
29 | |||
30 | /** |
||
31 | * @param AddProductToCart $command |
||
32 | */ |
||
33 | public function handleAddProductToCart(AddProductToCart $command): void |
||
42 | } |
||
43 |