* * 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:----QXf8WPB7aH0ktcAl/8BC7Tl+eM5tWVavopGD1luFD4MesWvZPZam5oIP+fWCPz2P3ZVvM5XIXOvzzZqJ2GniVONy5KtbnmSmT5QI6dImylO6Yqu5g+Oa4x1rnzZRSRRv+A15j84qVAZtuXVJBsijY8xONsLpfvUlizguQ12VBrskt2LMh1SFhUhIX3sAZSycADlAe6hyNj/GFbCe5TqPFqrM21s72qwUKFUO/kaHKb4HeA7kXcKQOjmKLLJsxam+PCff0al/dmFnWsG/+ZG6Uxc2eJq3L4prK6Cp/D8GZKgqvrETClh9zYw0iEZPlu9ahbKjjbCSu2/l4QQUXhTDEchjCZTXvpVsEUaZY1kXqfvN246/C600VvEK/CxmCU6AAV7eSr0W9+vuvZsXwPeaZ2CvVJbEuBWXxppUC5Xr/c32oP6BbXXBIoeOi0tvg4X70nd9zP/QIENNRFgSk4gyD0XzBgsc46yc3CHY+e32acIIr1qKgNaPvUVFQ01oMD35qeHxwKmXprwVjkwlsHGKfXEVBajuAuPtfxP9wyo0RjwKF4X0P1JY4rXMgVfofoD60zwIZSO1glxf+zTSQY7keE4pvn4qGyiStqOlKW4Ayhh2FBy820v9Xmxq0PGbZWwTrRHGbAPHx2zkTaWC28ggeyLTnfu1qrQ21YSlRM7MIfE=----ATTACHMENT:----Mzk2Njg2MDM0NjQzNDI0NiAxNzYxNjM2NTQxODI0MzIwIDgxMzE2NzgzNjExMDQ0NDA=