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
;
14 use Symfony\Component\EventDispatcher\Event
;
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 class FormEvent
extends Event
25 * Constructs an event.
27 * @param FormInterface $form The associated form
28 * @param mixed $data The data
30 public function __construct(FormInterface
$form, $data)
37 * Returns the form at the source of the event.
39 * @return FormInterface
41 public function getForm()
47 * Returns the data associated with this event.
51 public function getData()
57 * Allows updating with some filtered data.
61 public function setData($data)