OptionDefinitionException example

        unset($this->resolved[$option]);

        return $this;
    }

    /** * 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 */
Home | Imprint | This part of the site doesn't use cookies.