public function removeForCart(CartId $cartId) { if (!$this->existsForCart($cartId)) { throw new CheckoutNotFoundException(); } unset($this->checkouts[(string) $cartId]); }