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

Guess guessPattern(string $class, string $property)

Returns a guess about the field's pattern

Details

at line 27
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 37
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 47
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 59
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

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

Guess A guess for the field's required pattern