Interface

Symfony\Component\Form\FormTypeGuesserInterface

interface FormTypeGuesserInterface

Methods

TypeGuess guessType(string $class, string $property)

Returns a field guess for a property name of a class

Guess guessRequired(string $class, string $property)

Returns a guess whether a property of a class is required

Guess guessMaxLength(string $class, string $property)

Returns a guess about the field's maximum length

Guess guessMinLength(string $class, string $property)

Returns a guess about the field's minimum length

Details

at line 24
public TypeGuess 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 A guess for the field's type and options

at line 34
public Guess 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

Guess A guess for the field's required setting

at line 44
public Guess 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

Guess A guess for the field's maximum length

at line 54
public Guess guessMinLength(string $class, string $property)

Returns a guess about the field's minimum length

Parameters

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

Return Value

Guess A guess for the field's minimum length