@@ -41,61 +41,49 @@ public function __construct(OptionsResolver $optionsResolver)
41
41
}
42
42
43
43
/**
44
- * @param string $option
45
- *
46
44
* @return mixed
47
45
*
48
46
* @throws NoConfigurationException on no configured value
49
47
*/
50
- public function getDefault ($ option )
48
+ public function getDefault (string $ option )
51
49
{
52
50
return call_user_func ($ this ->get , 'defaults ' , $ option , sprintf ('No default value was set for the "%s" option. ' , $ option ));
53
51
}
54
52
55
53
/**
56
- * @param string $option
57
- *
58
54
* @return \Closure[]
59
55
*
60
56
* @throws NoConfigurationException on no configured closures
61
57
*/
62
- public function getLazyClosures ($ option )
58
+ public function getLazyClosures (string $ option ): array
63
59
{
64
60
return call_user_func ($ this ->get , 'lazy ' , $ option , sprintf ('No lazy closures were set for the "%s" option. ' , $ option ));
65
61
}
66
62
67
63
/**
68
- * @param string $option
69
- *
70
64
* @return string[]
71
65
*
72
66
* @throws NoConfigurationException on no configured types
73
67
*/
74
- public function getAllowedTypes ($ option )
68
+ public function getAllowedTypes (string $ option ): array
75
69
{
76
70
return call_user_func ($ this ->get , 'allowedTypes ' , $ option , sprintf ('No allowed types were set for the "%s" option. ' , $ option ));
77
71
}
78
72
79
73
/**
80
- * @param string $option
81
- *
82
74
* @return mixed[]
83
75
*
84
76
* @throws NoConfigurationException on no configured values
85
77
*/
86
- public function getAllowedValues ($ option )
78
+ public function getAllowedValues (string $ option ): array
87
79
{
88
80
return call_user_func ($ this ->get , 'allowedValues ' , $ option , sprintf ('No allowed values were set for the "%s" option. ' , $ option ));
89
81
}
90
82
91
83
/**
92
- * @param string $option
93
- *
94
- * @return \Closure
95
- *
96
84
* @throws NoConfigurationException on no configured normalizer
97
85
*/
98
- public function getNormalizer ($ option )
86
+ public function getNormalizer (string $ option ): \ Closure
99
87
{
100
88
return call_user_func ($ this ->get , 'normalizers ' , $ option , sprintf ('No normalizer was set for the "%s" option. ' , $ option ));
101
89
}
0 commit comments