@@ -31,11 +31,9 @@ interface ChoiceListFactoryInterface
31
31
* The callable receives the choice as only argument.
32
32
* Null may be passed when the choice list contains the empty value.
33
33
*
34
- * @param callable|null $value The callable generating the choice values
35
- *
36
34
* @return ChoiceListInterface The choice list
37
35
*/
38
- public function createListFromChoices (iterable $ choices , $ value = null );
36
+ public function createListFromChoices (iterable $ choices , callable $ value = null );
39
37
40
38
/**
41
39
* Creates a choice list that is loaded with the given loader.
@@ -44,11 +42,9 @@ public function createListFromChoices(iterable $choices, $value = null);
44
42
* The callable receives the choice as only argument.
45
43
* Null may be passed when the choice list contains the empty value.
46
44
*
47
- * @param callable|null $value The callable generating the choice values
48
- *
49
45
* @return ChoiceListInterface The choice list
50
46
*/
51
- public function createListFromLoader (ChoiceLoaderInterface $ loader , $ value = null );
47
+ public function createListFromLoader (ChoiceLoaderInterface $ loader , callable $ value = null );
52
48
53
49
/**
54
50
* Creates a view for the given choice list.
@@ -77,16 +73,10 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
77
73
* attributes that should be added to the respective choice.
78
74
*
79
75
* @param array|callable|null $preferredChoices The preferred choices
80
- * @param callable|null $label The callable generating the
81
- * choice labels
82
- * @param callable|null $index The callable generating the
83
- * view indices
84
- * @param callable|null $groupBy The callable generating the
85
- * group names
86
76
* @param array|callable|null $attr The callable generating the
87
77
* HTML attributes
88
78
*
89
79
* @return ChoiceListView The choice list view
90
80
*/
91
- public function createView (ChoiceListInterface $ list , $ preferredChoices = null , $ label = null , $ index = null , $ groupBy = null , $ attr = null );
81
+ public function createView (ChoiceListInterface $ list , $ preferredChoices = null , callable $ label = null , callable $ index = null , callable $ groupBy = null , $ attr = null );
92
82
}
0 commit comments