[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/options-resolver/ -> OptionConfigurator.php (summary)

(no description)

File Size: 139 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  __construct()
  allowedTypes()
  allowedValues()
  default()
  define()
  deprecated()
  normalize()
  required()
  info()

Functions
Functions that are not part of a class:

__construct(string $name, OptionsResolver $resolver)   X-Ref
No description

allowedTypes(string ...$types)   X-Ref
Adds allowed types for this option.

return: $this

allowedValues(...$values)   X-Ref
Sets allowed values for this option.

param: mixed ...$values One or more acceptable values/closures
return: $this

default($value)   X-Ref
Sets the default value for this option.

param: mixed $value The default value of the option
return: $this

define(string $option)   X-Ref
Defines an option configurator with the given name.


deprecated(string $package, string $version, $message = 'The option "%name%" is deprecated.')   X-Ref
Marks this option as deprecated.

param: string          $package The name of the composer package that is triggering the deprecation
param: string          $version The version of the package that introduced the deprecation
param: string|\Closure $message The deprecation message to use
return: $this

normalize(\Closure $normalizer)   X-Ref
Sets the normalizer for this option.

return: $this

required()   X-Ref
Marks this option as required.

return: $this

info(string $info)   X-Ref
Sets an info message for an option.

return: $this



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer