public function getForCart(CartId $cartId) : Checkout { if (!$this->existsForCart($cartId)) { throw new CheckoutNotFoundException(); } return $this->checkouts[(string) $cartId]; }