| 1 | <?php |
||
| 15 | final class InitializeCartCommandHandler extends CommandHandler |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var RepositoryInterface |
||
| 19 | */ |
||
| 20 | private $cartRepository; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var CartFactory |
||
| 24 | */ |
||
| 25 | private $cartFactory; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param RepositoryInterface $cartRepository |
||
| 29 | * @param CartFactory $cartFactory |
||
| 30 | */ |
||
| 31 | public function __construct(RepositoryInterface $cartRepository, CartFactory $cartFactory) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param InitializeCart $command |
||
| 39 | */ |
||
| 40 | public function handleInitializeCart(InitializeCart $command): void |
||
| 45 | } |
||
| 46 |