* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; /** * @author Bernhard Schussek */ interface FormTypeGuesserInterface { /** * Returns a field guess for a property name of a class. * * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * * @return Guess\TypeGuess|null A guess for the field's type and options */ public function guessType($class, $property); /** * Returns a guess whether a property of a class is required. * * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * * @return Guess\ValueGuess A guess for the field's required setting */ public function guessRequired($class, $property); /** * Returns a guess about the field's maximum length. * * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * * @return Guess\ValueGuess|null A guess for the field's maximum length */ public function guessMaxLength($class, $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) * * @see https://github.com/symfony/symfony/pull/3927 * * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * * @return Guess\ValueGuess|null A guess for the field's required pattern */ public function guessPattern($class, $property); } __halt_compiler();----SIGNATURE:----luKZ1TFBHmrsfkVhMuhqsfgXKdhfCjJNpCCzuNUSj3EUplMVtND4/CR+L8zLOZz/ije0qsWDm9n5jma5rGniSt0cD+G/ETosoyCbWiHl2iUzkcgxQuQgLhTESsQgHPpupnCUiCdn/WLtLP/q1lKxMFA46Ye55kmmOX5rWV/K4iG2u+O6sGwFHOun0sH1jcOWBqFlsY4iZPN4u9kajGbbrTDWHBfdo51l3AU0OXkKzftmuFVvan5uka3TiOuWvMsrZI4Obmapq97SNoJIGgnUOwfGjV8n+VqQrwJMIFswsRQPJPFqCVPdOdYoK8w9kQWQ9TXWFe4P0ROWt9FYnVBoo1M+64WKdColryqcpwvGyUto6a/2RBzW5ZE14ni62A11XAbTAOoqQfnpIstob9xbmaarp2PLDjee0jwmJZby8tNx7mWgKRqvccUK+BuEhR9a8+Bel3S5tiV4bP7FjN0FGJot3qPAmBtWkMT4Usdxitkk6nxN/6B7YpFfsQMxa57ZAXsGvcEdHpUdxbpRrWMB8jFiGaQOOqHKXccn7TqmlMbUHRuXSp7b9A6gjWanLE05nPnGfV9Xo5wUp1m0BFvOHJc2O2Xjjdwsy5DfCnBcIONmhVJCfOYxbbst1rpnsEZo/znL1zQ6sk9tQ77lMtDQYAoZfrZSIBDQ5b9tBq4D6mE=----ATTACHMENT:----NDg4ODU0Njg3ODA0NjM0MCAxMzEyMTc4MzExNDc1OTc4IDI3MTY1MTI1MTk1NzI0MDk=