@@ -57,12 +57,12 @@ public function __construct()
57
57
/**
58
58
* Sets default option values.
59
59
*
60
- * @param array $options A list of option names as keys and default values
61
- * as values. The option values may be closures
62
- * of the following signatures:
60
+ * @param array $defaultValues A list of option names as keys and default values
61
+ * as values. The option values may be closures
62
+ * of the following signatures:
63
63
*
64
- * - function (Options $options)
65
- * - function (Options $options, $previousValue)
64
+ * - function (Options $options)
65
+ * - function (Options $options, $previousValue)
66
66
*/
67
67
public function setDefaults (array $ defaultValues )
68
68
{
@@ -80,11 +80,11 @@ public function setDefaults(array $defaultValues)
80
80
* performance if the previous default value is calculated by an expensive
81
81
* closure.
82
82
*
83
- * @param array $options A list of option names as keys and default values
84
- * as values. The option values may be closures
85
- * of the following signature:
83
+ * @param array $defaultValues A list of option names as keys and default values
84
+ * as values. The option values may be closures
85
+ * of the following signature:
86
86
*
87
- * - function (Options $options)
87
+ * - function (Options $options)
88
88
*/
89
89
public function replaceDefaults (array $ defaultValues )
90
90
{
@@ -214,10 +214,11 @@ public function resolve(array $options)
214
214
* Validates that the given option names exist and throws an exception
215
215
* otherwise.
216
216
*
217
- * @param array $optionNames A list of option names.
217
+ * @param array $optionNames A list of option names.
218
218
*
219
- * @throws InvalidOptionsException If any of the options has not been
220
- * defined.
219
+ * @throws InvalidOptionsException If any of the options has not been
220
+ * defined.
221
+ * @throws MissingOptionsException If a required option is missing.
221
222
*/
222
223
private function validateOptionNames (array $ optionNames )
223
224
{
0 commit comments