From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- .../Symfony/Component/Form/DataMapperInterface.php | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php (limited to 'vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php') diff --git a/vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php b/vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php new file mode 100644 index 00000000..6e031682 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/DataMapperInterface.php @@ -0,0 +1,38 @@ + + * + * 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 DataMapperInterface +{ + /** + * Maps properties of some data to a list of forms. + * + * @param mixed $data Structured data. + * @param FormInterface[] $forms A list of {@link FormInterface} instances. + * + * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported. + */ + public function mapDataToForms($data, $forms); + + /** + * Maps the data of a list of forms into the properties of some data. + * + * @param FormInterface[] $forms A list of {@link FormInterface} instances. + * @param mixed $data Structured data. + * + * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported. + */ + public function mapFormsToData($forms, &$data); +} -- cgit v1.2.3