]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php
6e0316829152d628507813a0968fa20be12b0b1a
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form
;
15 * @author Bernhard Schussek <bschussek@gmail.com>
17 interface DataMapperInterface
20 * Maps properties of some data to a list of forms.
22 * @param mixed $data Structured data.
23 * @param FormInterface[] $forms A list of {@link FormInterface} instances.
25 * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
27 public function mapDataToForms($data, $forms);
30 * Maps the data of a list of forms into the properties of some data.
32 * @param FormInterface[] $forms A list of {@link FormInterface} instances.
33 * @param mixed $data Structured data.
35 * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
37 public function mapFormsToData($forms, &$data);