@@ -43,7 +43,7 @@ interface OptionsResolverInterface
43
43
* @param array $defaultValues A list of option names as keys and default
44
44
* values or closures as values.
45
45
*
46
- * @return OptionsResolverInterface The resolver instance.
46
+ * @return OptionsResolverInterface The resolver instance
47
47
*/
48
48
public function setDefaults (array $ defaultValues );
49
49
@@ -58,7 +58,7 @@ public function setDefaults(array $defaultValues);
58
58
* @param array $defaultValues A list of option names as keys and default
59
59
* values or closures as values.
60
60
*
61
- * @return OptionsResolverInterface The resolver instance.
61
+ * @return OptionsResolverInterface The resolver instance
62
62
*/
63
63
public function replaceDefaults (array $ defaultValues );
64
64
@@ -71,9 +71,9 @@ public function replaceDefaults(array $defaultValues);
71
71
* if you want to determine whether an option has been set or not because otherwise
72
72
* {@link resolve()} would trigger an exception for unknown options.
73
73
*
74
- * @param array $optionNames A list of option names.
74
+ * @param array $optionNames A list of option names
75
75
*
76
- * @return OptionsResolverInterface The resolver instance.
76
+ * @return OptionsResolverInterface The resolver instance
77
77
*/
78
78
public function setOptional (array $ optionNames );
79
79
@@ -83,9 +83,9 @@ public function setOptional(array $optionNames);
83
83
* If these options are not passed to {@link resolve()} and no default has been set for
84
84
* them, an exception will be thrown.
85
85
*
86
- * @param array $optionNames A list of option names.
86
+ * @param array $optionNames A list of option names
87
87
*
88
- * @return OptionsResolverInterface The resolver instance.
88
+ * @return OptionsResolverInterface The resolver instance
89
89
*/
90
90
public function setRequired ($ optionNames );
91
91
@@ -96,7 +96,7 @@ public function setRequired($optionNames);
96
96
* with values acceptable for that option as
97
97
* values.
98
98
*
99
- * @return OptionsResolverInterface The resolver instance.
99
+ * @return OptionsResolverInterface The resolver instance
100
100
*
101
101
* @throws InvalidOptionsException If an option has not been defined
102
102
* (see {@link isKnown()}) for which
@@ -113,7 +113,7 @@ public function setAllowedValues($allowedValues);
113
113
* with values acceptable for that option as
114
114
* values.
115
115
*
116
- * @return OptionsResolverInterface The resolver instance.
116
+ * @return OptionsResolverInterface The resolver instance
117
117
*
118
118
* @throws InvalidOptionsException If an option has not been defined
119
119
* (see {@link isKnown()}) for which
@@ -127,7 +127,7 @@ public function addAllowedValues($allowedValues);
127
127
* @param array $allowedTypes A list of option names as keys and type
128
128
* names passed as string or array as values.
129
129
*
130
- * @return OptionsResolverInterface The resolver instance.
130
+ * @return OptionsResolverInterface The resolver instance
131
131
*
132
132
* @throws InvalidOptionsException If an option has not been defined for
133
133
* which an allowed type is set.
@@ -142,7 +142,7 @@ public function setAllowedTypes($allowedTypes);
142
142
* @param array $allowedTypes A list of option names as keys and type
143
143
* names passed as string or array as values.
144
144
*
145
- * @return OptionsResolverInterface The resolver instance.
145
+ * @return OptionsResolverInterface The resolver instance
146
146
*
147
147
* @throws InvalidOptionsException If an option has not been defined for
148
148
* which an allowed type is set.
@@ -163,9 +163,9 @@ public function addAllowedTypes($allowedTypes);
163
163
*
164
164
* The closure should return the normalized value.
165
165
*
166
- * @param array $normalizers An array of closures.
166
+ * @param array $normalizers An array of closures
167
167
*
168
- * @return OptionsResolverInterface The resolver instance.
168
+ * @return OptionsResolverInterface The resolver instance
169
169
*/
170
170
public function setNormalizers (array $ normalizers );
171
171
@@ -175,9 +175,9 @@ public function setNormalizers(array $normalizers);
175
175
* An option is known if it has been passed to either {@link setDefaults()},
176
176
* {@link setRequired()} or {@link setOptional()} before.
177
177
*
178
- * @param string $option The name of the option.
178
+ * @param string $option The name of the option
179
179
*
180
- * @return bool Whether the option is known.
180
+ * @return bool Whether the option is known
181
181
*/
182
182
public function isKnown ($ option );
183
183
@@ -188,18 +188,18 @@ public function isKnown($option);
188
188
* but not to {@link setDefaults()}. That is, the option has been declared
189
189
* as required and no default value has been set.
190
190
*
191
- * @param string $option The name of the option.
191
+ * @param string $option The name of the option
192
192
*
193
- * @return bool Whether the option is required.
193
+ * @return bool Whether the option is required
194
194
*/
195
195
public function isRequired ($ option );
196
196
197
197
/**
198
198
* Returns the combination of the default and the passed options.
199
199
*
200
- * @param array $options The custom option values.
200
+ * @param array $options The custom option values
201
201
*
202
- * @return array A list of options and their values.
202
+ * @return array A list of options and their values
203
203
*
204
204
* @throws InvalidOptionsException If any of the passed options has not
205
205
* been defined or does not contain an
0 commit comments