Symfony\Component\OptionsResolver\OptionsResolverInterface::setAllowedValues
Sets allowed values for a list of options.
Signature
public function setAllowedValues(array
$allowedValues )
Parameters
$allowedValues
— array- A list of option names as keys and arrays
with values acceptable for that option as
values.
Returns
- OptionsResolverInterface
- The resolver instance.
Errors/Exceptions
-
InvalidOptionsException
- If an option has not been defined