ValueGuess
class ValueGuess extends Guess
Contains a guessed value.
Constants
Methods
static Guess|null
getBestGuess(array $guesses)
Returns the guess most likely to be correct from a list of guesses.
from Guess
__construct(string|int|bool|null $value, int $confidence)
No description
string|int|bool|null
getValue()
Returns the guessed value.
Details
static Guess|null
getBestGuess(array $guesses)
Returns the guess most likely to be correct from a list of guesses.
If there are multiple guesses with the same, highest confidence, the returned guess is any of them.