Interface

Symfony\Component\Form\FormTypeGuesserInterface

interface FormTypeGuesserInterface

Methods

TypeGuess|null guessType(string $class, string $property)

Returns a field guess for a property name of a class

ValueGuess guessRequired(string $class, string $property)

Returns a guess whether a property of a class is required

ValueGuess|null guessMaxLength(string $class, string $property)

Returns a guess about the field's maximum length

ValueGuess|null guessPattern(string $class, string $property)

Returns a guess about the field's pattern

Details

at line 27
public TypeGuess|null guessType(string $class, string $property)

Returns a field guess for a property name of a class

Parameters

string $class The fully qualified class name
string $property The name of the property to guess for

Return Value

TypeGuess|null A guess for the field's type and options

at line 37
public ValueGuess guessRequired(string $class, string $property)

Returns a guess whether a property of a class is required

Parameters

string $class The fully qualified class name
string $property The name of the property to guess for

Return Value

ValueGuess A guess for the field's required setting

at line 47
public ValueGuess|null guessMaxLength(string $class, string $property)

Returns a guess about the field's maximum length

Parameters

string $class The fully qualified class name
string $property The name of the property to guess for

Return Value

ValueGuess|null A guess for the field's maximum length

at line 63
public ValueGuess|null guessPattern(string $class, string $property)

Returns a guess about the field's pattern

Parameters

string $class The fully qualified class name
string $property The name of the property to guess for

Return Value

ValueGuess|null A guess for the field's required pattern