class ValueGuess extends Guess
Contains a guessed value.
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. | from Guess |
__construct(string|int|bool|null $value, int $confidence) | ||
int | getConfidence() Returns the confidence that the guessed value is correct. | from Guess |
string|int|bool|null | getValue() Returns the guessed value. |
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.
array | $guesses | An array of guesses |
Guess|null |
string|int|bool|null | $value | The guessed value |
int | $confidence | The confidence |
Returns the confidence that the guessed value is correct.
int | One of the constants VERY_HIGH_CONFIDENCE, HIGH_CONFIDENCE, MEDIUM_CONFIDENCE and LOW_CONFIDENCE |
Returns the guessed value.
string|int|bool|null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Guess/ValueGuess.html