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 HIGHCONFIDENCE is more likely to be correct than an instance with confidence LOWCONFIDENCE.
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. |
static Guess|null | getBestGuess(array $guesses) Returns the guess most likely to be correct from a list of guesses. | |
__construct(int $confidence) Constructor. | ||
int | getConfidence() Returns the confidence that the guessed value is correct. |
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.
Constructor.
Returns the confidence that the guessed value is correct.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Form/Guess/Guess.html