PropelTypeGuesser
class PropelTypeGuesser implements FormTypeGuesserInterface
Propel Type guesser.
Methods
TypeGuess|null
guessType(string $class, string $property)
Returns a field guess for a property name of a class
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 line 31
TypeGuess|null
guessType(string $class, string $property)
Returns a field guess for a property name of a class
at line line 113
ValueGuess
guessRequired(string $class, string $property)
Returns a guess whether a property of a class is required
at line line 123
ValueGuess|null
guessMaxLength(string $class, string $property)
Returns a guess about the field's maximum length
at line line 142
ValueGuess|null
guessPattern(string $class, string $property)
Returns a guess about the field's pattern
- When you have a min value, you guess a min length of this min (LOW_CONFIDENCE) , lines below
- If this value is a float type, this is wrong so you guess null with MEDIUM_CONFIDENCE to override the previous guess. Example: You want a float greater than 5, 4.512313 is not valid but length(4.512314) > length(5)