ValueGuess
class ValueGuess extends Guess
Contains a guessed value.
Constants
VERY_HIGH_CONFIDENCE |
Marks an instance with a value that is extremely likely to be correct. |
HIGH_CONFIDENCE |
Marks an instance with a value that is very likely to be correct. |
MEDIUM_CONFIDENCE |
Marks an instance with a value that is likely to be correct. |
LOW_CONFIDENCE |
Marks an instance with a value that may be correct. |
Methods
static Guess|null
getBestGuess(array $guesses)
Returns the guess most likely to be correct from a list of guesses.
from Guess
__construct(string $value, int $confidence)
Constructor.
mixed
getValue()
Returns the guessed value.
Details
in Guess at line line 75
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.
at line line 35
__construct(string $value, int $confidence)
Constructor.
in Guess at line line 113
int
getConfidence()
Returns the confidence that the guessed value is correct.
at line line 47
mixed
getValue()
Returns the guessed value.