OptionsResolverInterface addAllowedValues(array $allowedValues)
Adds allowed values for a list of options.
The values are merged with the allowed values defined previously.
OptionsResolverInterface addAllowedValues(array $allowedValues)
Adds allowed values for a list of options.
The values are merged with the allowed values defined previously.
array | $allowedValues | A list of option names as keys and arrays with values acceptable for that option as values. |
OptionsResolverInterface | The resolver instance. |
InvalidOptionsException | If an option has not been defined (see {@link isKnown()}) for which an allowed value is set. |
Designed by : w10schools
service@w10schools.com
Please login to continue.