Files
archived-form/FormTypeGuesserInterface.php
Nicolas Grekas 27495a1f53 Merge branch '6.4' into 7.0
* 6.4:
  [Mime] Fix lowest versions of deps
  [VarDumper] Fix calling scope detection inside magic accessors
  [Validator] add missing German translations
  fix deprecation versions
  update the Brevo SMTP host
  Remove \ReflectionProperty::setAccessible(true) calls
  [Serializer] Fix denormalizing abstract part headers in MimeMessageNormalizer
  Fix property must not be accessed before initialization on SymfonyRuntime::$input
  [Form] Remove an obsolete phpdoc comment
  [Webhook] Allow slash in webhook type
  Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls
  [FrameworkBundle][Workflow] Throw exception is workflow.xxx.transitions is not an array
2023-07-27 08:33:22 +02:00

39 lines
1015 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*/
interface FormTypeGuesserInterface
{
/**
* Returns a field guess for a property name of a class.
*/
public function guessType(string $class, string $property): ?Guess\TypeGuess;
/**
* Returns a guess whether a property of a class is required.
*/
public function guessRequired(string $class, string $property): ?Guess\ValueGuess;
/**
* Returns a guess about the field's maximum length.
*/
public function guessMaxLength(string $class, string $property): ?Guess\ValueGuess;
/**
* Returns a guess about the field's pattern.
*/
public function guessPattern(string $class, string $property): ?Guess\ValueGuess;
}