Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: stub DataMapperInterface
Ensure TData of FormInterface is provided Set TData on mixed since we don't know the type of the child forms Add template for in DataMapperInterface refs: #417
  • Loading branch information
wietse committed Dec 4, 2024
commit 12ff9846fa684137318a77797d3d72502921d0a0
21 changes: 21 additions & 0 deletions stubs/Symfony/Component/Form/DataMapperInterface.sub
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Symfony\Component\Form;

/**
* @template TViewData
*/
interface DataMapperInterface
{
/**
* @param TViewData $viewData
* @param \Traversable<mixed, FormInterface<mixed>> $forms
*/
public function mapDataToForms(mixed $viewData, \Traversable $forms): void;

/**
* @param \Traversable<mixed, FormInterface<mixed>> $forms
* @param TViewData $viewData
*/
public function mapFormsToData(\Traversable $forms, mixed &$viewData): void;
}
Loading