public function cartId() : string { return $this->cartId; }
/** * @param RemoveFromCart $command * * @throws \Exception */ public function handle(RemoveFromCart $command) { $cart = $this->carts->getById(new CartId($command->cartId())); $cart->remove(new SKU($command->sku())); }