if (null ===
$this->options
['collection'
]) { throw new InvalidArgumentException(sprintf('"%s()" requires the "collection" in the URI querystring or option.', __METHOD__
));
} } if ($this->options
['gcProbability'
] < 0.0 ||
$this->options
['gcProbability'
] > 1.0
) { throw new InvalidArgumentException(sprintf('"%s()" gcProbability must be a float from 0.0 to 1.0, "%f" given.', __METHOD__,
$this->options
['gcProbability'
]));
} if ($this->initialTtl <= 0
) { throw new InvalidTtlException(sprintf('"%s()" expects a strictly positive TTL, got "%d".', __METHOD__,
$this->initialTtl
));
} } /**
* Extract default database and collection from given connection URI and remove collection querystring.
*
* Non-standard parameters are removed from the URI to improve libmongoc's re-use of connections.
*
* @see https://www.php.net/manual/en/mongodb.connection-handling.php
*/
private function skimUri(string
$uri): string
{