Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser::guess
Iterates over the constraints of a property, executes a constraints on them and returns the best guess
Signature
protected function guess(string
$class,
[Closure
$property = null,
[Closure
$closure = null,
[mixed
$defaultValue = null]]] )
Parameters
$class
—
string
- The class to read the constraints from
$property
—
string
- The property for which to find constraints
$closure
—
\Closure
- The closure that returns a guess
for a given constraint
$defaultValue
—
mixed
- The default value assumed if no other value
can be guessed.
Returns
- Guess
- The guessed value with the highest confidence