-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathFormHandlerInterface.php
More file actions
49 lines (42 loc) · 1019 Bytes
/
FormHandlerInterface.php
File metadata and controls
49 lines (42 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @copyright 2017 Hostnet B.V.
*/
namespace Hostnet\Component\Form;
use Hostnet\Component\FormHandler\HandlerTypeInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeInterface;
@trigger_error(sprintf(
'%s is deprecated, use %s instead.',
FormHandlerInterface::class,
HandlerTypeInterface::class
), E_USER_DEPRECATED);
/**
* @author Iltar van der Berg <ivanderberg@hostnet.nl>
* @author Yannick de Lange <ydelange@hostnet.nl>
*
* @deprecated Use the HandlerTypeInterface instead. Will be removed in version 2.0.
*/
interface FormHandlerInterface
{
/**
* @return string|FormTypeInterface
*/
public function getType();
/**
* @return mixed
*/
public function getData();
/**
* @return array
*/
public function getOptions();
/**
* @return FormInterface
*/
public function getForm();
/**
* @param FormInterface $form
*/
public function setForm(FormInterface $form);
}