You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So why not have an interface which returns the options with default values?
namespaceInterop\Config;
interfaceHasDefaultOptions
{
/** * Returns a list of default options with their values * * @return string[] List of default options with their values */publicfunctiondefaultOptions();
}
This does not replace the HasOptionalOptions interface, because optional means null (not provided). I think the interface HasOptionalOptions and HasDefaultOptions can be combined.
For this feature the ConfigurationTrait must be updated with an extra interface check. What do you think?
The text was updated successfully, but these errors were encountered:
The configuration described in #8 Introducing HasOptionalOptions Interface has default options.
So why not have an interface which returns the options with default values?
Implementation for the configuration looks like
For this feature the
ConfigurationTrait
must be updated with an extra interface check. What do you think?The text was updated successfully, but these errors were encountered: