Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | interface FormWidgetInterface |
||
14 | { |
||
15 | /** |
||
16 | * @param FormBuilderInterface $builder The form builder |
||
17 | */ |
||
18 | public function buildForm(FormBuilderInterface $builder); |
||
19 | |||
20 | /** |
||
21 | * @param Request $request |
||
22 | */ |
||
23 | public function bindRequest(Request $request); |
||
24 | |||
25 | /** |
||
26 | * @param EntityManager $em The entity manager |
||
27 | */ |
||
28 | public function persist(EntityManager $em); |
||
29 | |||
30 | /** |
||
31 | * @param FormView $formView |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | public function getFormErrors(FormView $formView); |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getIdentifier(); |
||
41 | |||
42 | /** |
||
43 | * @param string $identifier |
||
44 | * |
||
45 | * @return TabInterface |
||
46 | */ |
||
47 | public function setIdentifier($identifier); |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getTemplate(); |
||
53 | |||
54 | /** |
||
55 | * @param Request $request |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getExtraParams(Request $request); |
||
60 | } |
||
61 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.