Guess
abstract class Guess
Base class for guesses made by TypeGuesserInterface implementation.
Each instance contains a confidence value about the correctness of the guess. Thus an instance with confidence HIGH_CONFIDENCE is more likely to be correct than an instance with confidence LOW_CONFIDENCE.
Constants
Methods
static Guess|null
getBestGuess(array $guesses)
Returns the guess most likely to be correct from a list of guesses.
__construct(int $confidence)
No description
int
getConfidence()
Returns the confidence that the guessed value is correct.
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.