Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/form/FormBuilderInterface.php line 44

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Form;
  11. /**
  12.  * @author Bernhard Schussek <bschussek@gmail.com>
  13.  *
  14.  * @extends \Traversable<string, FormBuilderInterface>
  15.  */
  16. interface FormBuilderInterface extends \Traversable\CountableFormConfigBuilderInterface
  17. {
  18.     /**
  19.      * Adds a new field to this group. A field must have a unique name within
  20.      * the group. Otherwise the existing field is overwritten.
  21.      *
  22.      * If you add a nested group, this group should also be represented in the
  23.      * object hierarchy.
  24.      *
  25.      * @param string|FormBuilderInterface $child
  26.      * @param array<string, mixed>        $options
  27.      *
  28.      * @return static
  29.      */
  30.     public function add($childstring $type null, array $options = []);
  31.     /**
  32.      * Creates a form builder.
  33.      *
  34.      * @param string               $name    The name of the form or the name of the property
  35.      * @param string|null          $type    The type of the form or null if name is a property
  36.      * @param array<string, mixed> $options
  37.      *
  38.      * @return self
  39.      */
  40.     public function create(string $namestring $type null, array $options = []);
  41.     /**
  42.      * Returns a child by name.
  43.      *
  44.      * @return self
  45.      *
  46.      * @throws Exception\InvalidArgumentException if the given child does not exist
  47.      */
  48.     public function get(string $name);
  49.     /**
  50.      * Removes the field with the given name.
  51.      *
  52.      * @return static
  53.      */
  54.     public function remove(string $name);
  55.     /**
  56.      * Returns whether a field with the given name exists.
  57.      *
  58.      * @return bool
  59.      */
  60.     public function has(string $name);
  61.     /**
  62.      * Returns the children.
  63.      *
  64.      * @return array<string, self>
  65.      */
  66.     public function all();
  67.     /**
  68.      * Creates the form.
  69.      *
  70.      * @return FormInterface
  71.      */
  72.     public function getForm();
  73. }