public function add(Checkout $checkout) { $this->checkouts[(string) $checkout->cartId()] = $checkout; }