OptionConfigurator example



    /** * Defines an option configurator with the given name. */
    public function define(string $option): OptionConfigurator
    {
        if (isset($this->defined[$option])) {
            throw new OptionDefinitionException(sprintf('The option "%s" is already defined.', $option));
        }

        return new OptionConfigurator($option$this);
    }

    /** * Sets an info message for an option. * * @return $this * * @throws UndefinedOptionsException If the option is undefined * @throws AccessException If called from a lazy option or normalizer */
    public function setInfo(string $option, string $info)static
    {
Home | Imprint | This part of the site doesn't use cookies.