caisse-bliss/v1/.phpdoc/build/classes/Symfony-Component-OptionsResolver-OptionsResolver.html

4558 lines
229 KiB
HTML
Raw Normal View History

2025-02-09 16:45:35 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/template.js"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/doctrinemigrations.html" class="">DoctrineMigrations</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/hwi.html" class="">HWI</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/hwi-bundle.html" class="">Bundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/caissebliss.html" class="">CaisseBliss</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/caissebliss-controller.html" class="">Controller</a>
</li>
<li>
<a href="namespaces/caissebliss-entity.html" class="">Entity</a>
</li>
<li>
<a href="namespaces/caissebliss-form.html" class="">Form</a>
</li>
<li>
<a href="namespaces/caissebliss-repository.html" class="">Repository</a>
</li>
<li>
<a href="namespaces/caissebliss-security.html" class="">Security</a>
</li>
<li>
<a href="namespaces/caissebliss-service.html" class="">Service</a>
</li>
<li>
<a href="namespaces/caissebliss-tests.html" class="">Tests</a>
</li>
<li>
<a href="namespaces/caissebliss-traits.html" class="">Traits</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/tests.html" class="">Tests</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/tests-appbundle.html" class="">AppBundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/app.html" class="">App</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/app-controller.html" class="">Controller</a>
</li>
<li>
<a href="namespaces/app-datafixtures.html" class="">DataFixtures</a>
</li>
<li>
<a href="namespaces/app-entity.html" class="">Entity</a>
</li>
<li>
<a href="namespaces/app-form.html" class="">Form</a>
</li>
<li>
<a href="namespaces/app-repository.html" class="">Repository</a>
</li>
<li>
<a href="namespaces/app-security.html" class="">Security</a>
</li>
<li>
<a href="namespaces/app-traits.html" class="">Traits</a>
</li>
<li>
<a href="namespaces/app-tests.html" class="">Tests</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/containervvrt4pd.html" class="">ContainerVvRT4pd</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/symfony.html" class="">Symfony</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/symfony-config.html" class="">Config</a>
</li>
<li>
<a href="namespaces/symfony-component.html" class="">Component</a>
</li>
<li>
<a href="namespaces/symfony-contracts.html" class="">Contracts</a>
</li>
<li>
<a href="namespaces/symfony-bundle.html" class="">Bundle</a>
</li>
<li>
<a href="namespaces/symfony-bridge.html" class="">Bridge</a>
</li>
<li>
<a href="namespaces/symfony-flex.html" class="">Flex</a>
</li>
<li>
<a href="namespaces/symfony-polyfill.html" class="">Polyfill</a>
</li>
<li>
<a href="namespaces/symfony-runtime.html" class="">Runtime</a>
</li>
<li>
<a href="namespaces/symfony-webpackencorebundle.html" class="">WebpackEncoreBundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/composer.html" class="">Composer</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/composer-autoload.html" class="">Autoload</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/doctrine.html" class="">Doctrine</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/doctrine-common.html" class="">Common</a>
</li>
<li>
<a href="namespaces/doctrine-dbal.html" class="">DBAL</a>
</li>
<li>
<a href="namespaces/doctrine-deprecations.html" class="">Deprecations</a>
</li>
<li>
<a href="namespaces/doctrine-bundle.html" class="">Bundle</a>
</li>
<li>
<a href="namespaces/doctrine-inflector.html" class="">Inflector</a>
</li>
<li>
<a href="namespaces/doctrine-instantiator.html" class="">Instantiator</a>
</li>
<li>
<a href="namespaces/doctrine-migrations.html" class="">Migrations</a>
</li>
<li>
<a href="namespaces/doctrine-orm.html" class="">ORM</a>
</li>
<li>
<a href="namespaces/doctrine-persistence.html" class="">Persistence</a>
</li>
<li>
<a href="namespaces/doctrine-sqlformatter.html" class="">SqlFormatter</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/easycorp.html" class="">EasyCorp</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/easycorp-bundle.html" class="">Bundle</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/egulias.html" class="">Egulias</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/egulias-emailvalidator.html" class="">EmailValidator</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/proxymanager.html" class="">ProxyManager</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/proxymanager-autoloader.html" class="">Autoloader</a>
</li>
<li>
<a href="namespaces/proxymanager-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/proxymanager-factory.html" class="">Factory</a>
</li>
<li>
<a href="namespaces/proxymanager-filelocator.html" class="">FileLocator</a>
</li>
<li>
<a href="namespaces/proxymanager-generator.html" class="">Generator</a>
</li>
<li>
<a href="namespaces/proxymanager-generatorstrategy.html" class="">GeneratorStrategy</a>
</li>
<li>
<a href="namespaces/proxymanager-inflector.html" class="">Inflector</a>
</li>
<li>
<a href="namespaces/proxymanager-proxy.html" class="">Proxy</a>
</li>
<li>
<a href="namespaces/proxymanager-proxygenerator.html" class="">ProxyGenerator</a>
</li>
<li>
<a href="namespaces/proxymanager-signature.html" class="">Signature</a>
</li>
<li>
<a href="namespaces/proxymanager-stub.html" class="">Stub</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/laminas.html" class="">Laminas</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/laminas-code.html" class="">Code</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/monolog.html" class="">Monolog</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/monolog-attribute.html" class="">Attribute</a>
</li>
<li>
<a href="namespaces/monolog-formatter.html" class="">Formatter</a>
</li>
<li>
<a href="namespaces/monolog-handler.html" class="">Handler</a>
</li>
<li>
<a href="namespaces/monolog-processor.html" class="">Processor</a>
</li>
<li>
<a href="namespaces/monolog-test.html" class="">Test</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/deepcopy.html" class="">DeepCopy</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/deepcopy-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/deepcopy-filter.html" class="">Filter</a>
</li>
<li>
<a href="namespaces/deepcopy-matcher.html" class="">Matcher</a>
</li>
<li>
<a href="namespaces/deepcopy-reflection.html" class="">Reflection</a>
</li>
<li>
<a href="namespaces/deepcopy-typefilter.html" class="">TypeFilter</a>
</li>
<li>
<a href="namespaces/deepcopy-typematcher.html" class="">TypeMatcher</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpparser.html" class="">PhpParser</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpparser-builder.html" class="">Builder</a>
</li>
<li>
<a href="namespaces/phpparser-comment.html" class="">Comment</a>
</li>
<li>
<a href="namespaces/phpparser-errorhandler.html" class="">ErrorHandler</a>
</li>
<li>
<a href="namespaces/phpparser-internal.html" class="">Internal</a>
</li>
<li>
<a href="namespaces/phpparser-lexer.html" class="">Lexer</a>
</li>
<li>
<a href="namespaces/phpparser-node.html" class="">Node</a>
</li>
<li>
<a href="namespaces/phpparser-nodevisitor.html" class="">NodeVisitor</a>
</li>
<li>
<a href="namespaces/phpparser-parser.html" class="">Parser</a>
</li>
<li>
<a href="namespaces/phpparser-prettyprinter.html" class="">PrettyPrinter</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phario.html" class="">PharIo</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phario-manifest.html" class="">Manifest</a>
</li>
<li>
<a href="namespaces/phario-version.html" class="">Version</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpdocumentor.html" class="">phpDocumentor</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpdocumentor-reflection.html" class="">Reflection</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpstan.html" class="">PHPStan</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpstan-phpdocparser.html" class="">PhpDocParser</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpunit.html" class="">PHPUnit</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpunit-framework.html" class="">Framework</a>
</li>
<li>
<a href="namespaces/phpunit-runner.html" class="">Runner</a>
</li>
<li>
<a href="namespaces/phpunit-textui.html" class="">TextUI</a>
</li>
<li>
<a href="namespaces/phpunit-util.html" class="">Util</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/psr.html" class="">Psr</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/psr-cache.html" class="">Cache</a>
</li>
<li>
<a href="namespaces/psr-container.html" class="">Container</a>
</li>
<li>
<a href="namespaces/psr-eventdispatcher.html" class="">EventDispatcher</a>
</li>
<li>
<a href="namespaces/psr-link.html" class="">Link</a>
</li>
<li>
<a href="namespaces/psr-log.html" class="">Log</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/sebastianbergmann.html" class="">SebastianBergmann</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/sebastianbergmann-codecoverage.html" class="">CodeCoverage</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-fileiterator.html" class="">FileIterator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-invoker.html" class="">Invoker</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-template.html" class="">Template</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-timer.html" class="">Timer</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-cliparser.html" class="">CliParser</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-codeunit.html" class="">CodeUnit</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-codeunitreverselookup.html" class="">CodeUnitReverseLookup</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-comparator.html" class="">Comparator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-complexity.html" class="">Complexity</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-diff.html" class="">Diff</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-environment.html" class="">Environment</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-exporter.html" class="">Exporter</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-globalstate.html" class="">GlobalState</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-linesofcode.html" class="">LinesOfCode</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-objectenumerator.html" class="">ObjectEnumerator</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-objectreflector.html" class="">ObjectReflector</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-recursioncontext.html" class="">RecursionContext</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-resourceoperations.html" class="">ResourceOperations</a>
</li>
<li>
<a href="namespaces/sebastianbergmann-type.html" class="">Type</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/theseer.html" class="">TheSeer</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/theseer-tokenizer.html" class="">Tokenizer</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/twig.html" class="">Twig</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/twig-extra.html" class="">Extra</a>
</li>
<li>
<a href="namespaces/twig-cache.html" class="">Cache</a>
</li>
<li>
<a href="namespaces/twig-error.html" class="">Error</a>
</li>
<li>
<a href="namespaces/twig-extension.html" class="">Extension</a>
</li>
<li>
<a href="namespaces/twig-loader.html" class="">Loader</a>
</li>
<li>
<a href="namespaces/twig-node.html" class="">Node</a>
</li>
<li>
<a href="namespaces/twig-nodevisitor.html" class="">NodeVisitor</a>
</li>
<li>
<a href="namespaces/twig-profiler.html" class="">Profiler</a>
</li>
<li>
<a href="namespaces/twig-runtimeloader.html" class="">RuntimeLoader</a>
</li>
<li>
<a href="namespaces/twig-sandbox.html" class="">Sandbox</a>
</li>
<li>
<a href="namespaces/twig-test.html" class="">Test</a>
</li>
<li>
<a href="namespaces/twig-tokenparser.html" class="">TokenParser</a>
</li>
<li>
<a href="namespaces/twig-util.html" class="">Util</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/webmozart.html" class="">Webmozart</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/webmozart-assert.html" class="">Assert</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/Application.html" class="">Application</a>
</h4>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -nine phpdocumentor-content">
<section>
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="namespaces/symfony.html">Symfony</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/symfony-component.html">Component</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/symfony-component-optionsresolver.html">OptionsResolver</a></li>
</ul>
<article class="phpdocumentor-element -class">
<h2 class="phpdocumentor-content__title">
OptionsResolver
<div class="phpdocumentor-element__package">
in package
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
</ul>
</div>
<span class="phpdocumentor-element__implements">
implements
<a href="classes/Symfony-Component-OptionsResolver-Options.html"><abbr title="\Symfony\Component\OptionsResolver\Options">Options</abbr></a> </span>
</h2>
<div class="phpdocumentor-label-line">
</div>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">28</span>
</aside>
<p class="phpdocumentor-summary">Validates options and merges them with default values.</p>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">author</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Bernhard Schussek <a href="mailto:bschussek@gmail.com">bschussek@gmail.com</a></p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">author</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Tobias Schultze <a href="http://tobion.de">http://tobion.de</a></p>
</section>
</dd>
</dl>
<h3 id="toc">
Table of Contents
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-interfaces">
Interfaces
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-interfaces" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -interface"><a href="classes/Symfony-Component-OptionsResolver-Options.html"><abbr title="\Symfony\Component\OptionsResolver\Options">Options</abbr></a></dt><dd>Contains resolved option values.</dd> </dl>
<h4 id="toc-constants">
Constants
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -constant -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#constant_VALIDATION_FUNCTIONS">VALIDATION_FUNCTIONS</a>
<span>
&nbsp;= [&#039;bool&#039; =&gt; &#039;is_bool&#039;, &#039;boolean&#039; =&gt; &#039;is_bool&#039;, &#039;int&#039; =&gt; &#039;is_int&#039;, &#039;integer&#039; =&gt; &#039;is_int&#039;, &#039;long&#039; =&gt; &#039;is_int&#039;, &#039;float&#039; =&gt; &#039;is_float&#039;, &#039;double&#039; =&gt; &#039;is_float&#039;, &#039;real&#039; =&gt; &#039;is_float&#039;, &#039;numeric&#039; =&gt; &#039;is_numeric&#039;, &#039;string&#039; =&gt; &#039;is_string&#039;, &#039;scalar&#039; =&gt; &#039;is_scalar&#039;, &#039;array&#039; =&gt; &#039;is_array&#039;, &#039;iterable&#039; =&gt; &#039;is_iterable&#039;, &#039;countable&#039; =&gt; &#039;is_countable&#039;, &#039;callable&#039; =&gt; &#039;is_callable&#039;, &#039;object&#039; =&gt; &#039;is_object&#039;, &#039;resource&#039; =&gt; &#039;is_resource&#039;] </span>
</dt>
</dl>
<h4 id="toc-properties">
Properties
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedTypes">$allowedTypes</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of accepted types for each option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedValues">$allowedValues</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of accepted values for each option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_calling">$calling</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of lazy options whose closure is currently being called.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defaults">$defaults</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The default option values.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defined">$defined</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The names of all defined options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_deprecated">$deprecated</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of deprecated options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_given">$given</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The list of options provided by the user.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_info">$info</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of info messages for each option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_lazy">$lazy</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>A list of closures for evaluating lazy options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_locked">$locked</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Whether the instance is locked for reading.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_nested">$nested</a>
<span>
&nbsp;: array&lt;string|int, array&lt;string|int, <abbr title="\Closure">Closure</abbr>&gt;&gt; </span>
</dt>
<dd>A list of closure for nested options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_normalizers">$normalizers</a>
<span>
&nbsp;: array&lt;string|int, array&lt;string|int, <abbr title="\Closure">Closure</abbr>&gt;&gt; </span>
</dt>
<dd>A list of normalizer closures.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_parentsOptions">$parentsOptions</a>
<span>
&nbsp;: mixed </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototype">$prototype</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Whether the whole options definition is marked as array prototype.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototypeIndex">$prototypeIndex</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The prototype array&#039;s index that is being read.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_required">$required</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The names of required options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_resolved">$resolved</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The resolved option values.</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedTypes">addAllowedTypes()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Adds allowed types for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedValues">addAllowedValues()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Adds allowed values for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addNormalizer">addNormalizer()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Adds a normalizer for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_clear">clear()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Removes all options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_count">count()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Returns the number of set options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_define">define()</a>
<span>
&nbsp;: <a href="classes/Symfony-Component-OptionsResolver-OptionConfigurator.html"><abbr title="\Symfony\Component\OptionsResolver\OptionConfigurator">OptionConfigurator</abbr></a> </span>
</dt>
<dd>Defines an option configurator with the given name.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getDefinedOptions">getDefinedOptions()</a>
<span>
&nbsp;: array&lt;string|int, string&gt; </span>
</dt>
<dd>Returns the names of all defined options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getInfo">getInfo()</a>
<span>
&nbsp;: string|null </span>
</dt>
<dd>Gets the info message for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getMissingOptions">getMissingOptions()</a>
<span>
&nbsp;: array&lt;string|int, string&gt; </span>
</dt>
<dd>Returns the names of all options missing a default value.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getRequiredOptions">getRequiredOptions()</a>
<span>
&nbsp;: array&lt;string|int, string&gt; </span>
</dt>
<dd>Returns the names of all required options.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_hasDefault">hasDefault()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether a default value is set for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDefined">isDefined()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether an option is defined.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDeprecated">isDeprecated()</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isMissing">isMissing()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether an option is missing a default value.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isNested">isNested()</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isPrototype">isPrototype()</a>
<span>
&nbsp;: bool </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isRequired">isRequired()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether an option is required.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetExists">offsetExists()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether a resolved option with the given name exists.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetGet">offsetGet()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Returns the resolved value of an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetSet">offsetSet()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Not supported.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetUnset">offsetUnset()</a>
<span>
&nbsp;: void </span>
</dt>
<dd>Not supported.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_remove">remove()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Removes the option with the given name.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_resolve">resolve()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Merges options with the default values stored in the container and
validates them.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedTypes">setAllowedTypes()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Sets allowed types for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedValues">setAllowedValues()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Sets allowed values for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefault">setDefault()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Sets the default value of a given option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefaults">setDefaults()</a>
<span>
&nbsp;: $this </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefined">setDefined()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Defines a valid option name.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDeprecated">setDeprecated()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Deprecates an option, allowed types or values.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setInfo">setInfo()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Sets an info message for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setNormalizer">setNormalizer()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Sets the normalizer for an option.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setPrototype">setPrototype()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Marks the whole options definition as array prototype.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setRequired">setRequired()</a>
<span>
&nbsp;: $this </span>
</dt>
<dd>Marks one or more options as required.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatOptions">formatOptions()</a>
<span>
&nbsp;: string </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValue">formatValue()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Returns a string representation of the value.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValues">formatValues()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Returns a string representation of a list of values.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getParameterClassName">getParameterClassName()</a>
<span>
&nbsp;: string|null </span>
</dt>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_verifyTypes">verifyTypes()</a>
<span>
&nbsp;: bool </span>
</dt>
</dl>
<section class="phpdocumentor-constants">
<h3 class="phpdocumentor-elements__header" id="constants">
Constants
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article class="phpdocumentor-element -constant -private ">
<h4 class="phpdocumentor-element__name" id="constant_VALIDATION_FUNCTIONS">
VALIDATION_FUNCTIONS
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#constant_VALIDATION_FUNCTIONS" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">30</span>
</aside>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">VALIDATION_FUNCTIONS</span>
= <span class="phpdocumentor-signature__default-value">[&#039;bool&#039; =&gt; &#039;is_bool&#039;, &#039;boolean&#039; =&gt; &#039;is_bool&#039;, &#039;int&#039; =&gt; &#039;is_int&#039;, &#039;integer&#039; =&gt; &#039;is_int&#039;, &#039;long&#039; =&gt; &#039;is_int&#039;, &#039;float&#039; =&gt; &#039;is_float&#039;, &#039;double&#039; =&gt; &#039;is_float&#039;, &#039;real&#039; =&gt; &#039;is_float&#039;, &#039;numeric&#039; =&gt; &#039;is_numeric&#039;, &#039;string&#039; =&gt; &#039;is_string&#039;, &#039;scalar&#039; =&gt; &#039;is_scalar&#039;, &#039;array&#039; =&gt; &#039;is_array&#039;, &#039;iterable&#039; =&gt; &#039;is_iterable&#039;, &#039;countable&#039; =&gt; &#039;is_countable&#039;, &#039;callable&#039; =&gt; &#039;is_callable&#039;, &#039;object&#039; =&gt; &#039;is_object&#039;, &#039;resource&#039; =&gt; &#039;is_resource&#039;]</span>
</code>
</article>
</section>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_allowedTypes">
$allowedTypes
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedTypes" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">92</span>
</aside>
<p class="phpdocumentor-summary">A list of accepted types for each option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$allowedTypes</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_allowedValues">
$allowedValues
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedValues" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">87</span>
</aside>
<p class="phpdocumentor-summary">A list of accepted values for each option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$allowedValues</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_calling">
$calling
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_calling" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">109</span>
</aside>
<p class="phpdocumentor-summary">A list of lazy options whose closure is currently being called.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$calling</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<section class="phpdocumentor-description"><p>This list helps detecting circular dependencies between lazy options.</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_defaults">
$defaults
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defaults" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">58</span>
</aside>
<p class="phpdocumentor-summary">The default option values.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$defaults</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_defined">
$defined
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defined" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">53</span>
</aside>
<p class="phpdocumentor-summary">The names of all defined options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$defined</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_deprecated">
$deprecated
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_deprecated" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">114</span>
</aside>
<p class="phpdocumentor-summary">A list of deprecated options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$deprecated</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_given">
$given
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_given" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">119</span>
</aside>
<p class="phpdocumentor-summary">The list of options provided by the user.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$given</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_info">
$info
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_info" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">97</span>
</aside>
<p class="phpdocumentor-summary">A list of info messages for each option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$info</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_lazy">
$lazy
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_lazy" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">102</span>
</aside>
<p class="phpdocumentor-summary">A list of closures for evaluating lazy options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$lazy</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_locked">
$locked
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_locked" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">129</span>
</aside>
<p class="phpdocumentor-summary">Whether the instance is locked for reading.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$locked</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<section class="phpdocumentor-description"><p>Once locked, the options cannot be changed anymore. This is
necessary in order to avoid inconsistencies during the resolving
process. If any option is changed after being read, all evaluated
lazy options that depend on this option would become invalid.</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_nested">
$nested
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_nested" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">65</span>
</aside>
<p class="phpdocumentor-summary">A list of closure for nested options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, <abbr title="\Closure">Closure</abbr>&gt;&gt;</span>
<span class="phpdocumentor-signature__name">$nested</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_normalizers">
$normalizers
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_normalizers" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">82</span>
</aside>
<p class="phpdocumentor-summary">A list of normalizer closures.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, <abbr title="\Closure">Closure</abbr>&gt;&gt;</span>
<span class="phpdocumentor-signature__name">$normalizers</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_parentsOptions">
$parentsOptions
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_parentsOptions" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">131</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$parentsOptions</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_prototype">
$prototype
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototype" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">136</span>
</aside>
<p class="phpdocumentor-summary">Whether the whole options definition is marked as array prototype.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$prototype</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_prototypeIndex">
$prototypeIndex
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototypeIndex" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">141</span>
</aside>
<p class="phpdocumentor-summary">The prototype array&#039;s index that is being read.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$prototypeIndex</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_required">
$required
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_required" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">70</span>
</aside>
<p class="phpdocumentor-summary">The names of required options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$required</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_resolved">
$resolved
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_resolved" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">75</span>
</aside>
<p class="phpdocumentor-summary">The resolved option values.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$resolved</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_addAllowedTypes">
addAllowedTypes()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedTypes" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">686</span>
</aside>
<p class="phpdocumentor-summary">Adds allowed types for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">addAllowedTypes</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$allowedTypes</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The types are merged with the allowed types defined previously.</p>
<p>Any type for which a corresponding is_<type>() function exists is
acceptable. Additionally, fully-qualified class or interface names may
be passed.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$allowedTypes</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more accepted types</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedTypes#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_addAllowedValues">
addAllowedValues()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedValues" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">612</span>
</aside>
<p class="phpdocumentor-summary">Adds allowed values for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">addAllowedValues</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$allowedValues</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The values are merged with the allowed values defined previously.</p>
<p>Instead of passing values, you may also pass a closures with the
following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function ($value) {
// return true or false
}
</code></pre>
<p>The closure receives the value as argument and should return true to
accept the value and false to reject the value.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$allowedValues</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more acceptable values/closures</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_addNormalizer">
addNormalizer()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addNormalizer" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">529</span>
</aside>
<p class="phpdocumentor-summary">Adds a normalizer for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">addNormalizer</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$normalizer</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$forcePrepend</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The normalizer should be a closure with the following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function (Options $options, $value): mixed {
// ...
}
</code></pre>
<p>The closure is invoked when <a href="resolve()"></a> is called. The closure
has access to the resolved values of other options through the passed
<a href="Options"></a> instance.</p>
<p>The second parameter passed to the closure is the value of
the option.</p>
<p>The resolved option value is set to the return value of the closure.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$normalizer</span>
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$forcePrepend</span>
: <span class="phpdocumentor-signature__argument__return-type">bool</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addNormalizer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_clear">
clear()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_clear" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">814</span>
</aside>
<p class="phpdocumentor-summary">Removes all options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">clear</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_clear#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_count">
count()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_count" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1206</span>
</aside>
<p class="phpdocumentor-summary">Returns the number of set options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">count</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This may be only a subset of the defined options.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_count#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If accessing this method outside of <a href="resolve()"></a></p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\Countable::count()">Countable::count()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_define">
define()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_define" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">711</span>
</aside>
<p class="phpdocumentor-summary">Defines an option configurator with the given name.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">define</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/Symfony-Component-OptionsResolver-OptionConfigurator.html"><abbr title="\Symfony\Component\OptionsResolver\OptionConfigurator">OptionConfigurator</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/Symfony-Component-OptionsResolver-OptionConfigurator.html"><abbr title="\Symfony\Component\OptionsResolver\OptionConfigurator">OptionConfigurator</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getDefinedOptions">
getDefinedOptions()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getDefinedOptions" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">396</span>
</aside>
<p class="phpdocumentor-summary">Returns the names of all defined options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getDefinedOptions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getDefinedOptions#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\Symfony\Component\OptionsResolver\isDefined()">isDefined()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getInfo">
getInfo()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getInfo" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">746</span>
</aside>
<p class="phpdocumentor-summary">Gets the info message for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getInfo</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|null</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getMissingOptions">
getMissingOptions()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getMissingOptions" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">347</span>
</aside>
<p class="phpdocumentor-summary">Returns the names of all options missing a default value.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getMissingOptions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getRequiredOptions">
getRequiredOptions()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getRequiredOptions" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">325</span>
</aside>
<p class="phpdocumentor-summary">Returns the names of all required options.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getRequiredOptions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getRequiredOptions#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\Symfony\Component\OptionsResolver\isRequired()">isRequired()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, string&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_hasDefault">
hasDefault()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_hasDefault" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">280</span>
</aside>
<p class="phpdocumentor-summary">Returns whether a default value is set for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">hasDefault</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Returns true if <a href="setDefault()"></a> was called for this option.
An option is also considered set if it was set to null.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isDefined">
isDefined()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDefined" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">384</span>
</aside>
<p class="phpdocumentor-summary">Returns whether an option is defined.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isDefined</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Returns true for any option passed to <a href="setDefault()"></a>,
<a href="setRequired()"></a> or <a href="setDefined()"></a>.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isDeprecated">
isDeprecated()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDeprecated" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">460</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isDeprecated</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isMissing">
isMissing()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isMissing" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">337</span>
</aside>
<p class="phpdocumentor-summary">Returns whether an option is missing a default value.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isMissing</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>An option is missing if it was passed to <a href="setRequired()"></a>, but not
to <a href="setDefault()"></a>. This option must be passed explicitly to
<a href="resolve()"></a>, otherwise an exception will be thrown.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isNested">
isNested()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isNested" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">401</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isNested</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isPrototype">
isPrototype()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isPrototype" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">777</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isPrototype</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isRequired">
isRequired()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isRequired" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">313</span>
</aside>
<p class="phpdocumentor-summary">Returns whether an option is required.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isRequired</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>An option is required if it was passed to <a href="setRequired()"></a>.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_offsetExists">
offsetExists()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetExists" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1168</span>
</aside>
<p class="phpdocumentor-summary">Returns whether a resolved option with the given name exists.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">offsetExists</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetExists#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If accessing this method outside of <a href="resolve()"></a></p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\ArrayAccess::offsetExists()">ArrayAccess::offsetExists()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_offsetGet">
offsetGet()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetGet" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">915</span>
</aside>
<p class="phpdocumentor-summary">Returns the resolved value of an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">offsetGet</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$triggerDeprecation</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$triggerDeprecation</span>
: <span class="phpdocumentor-signature__argument__return-type">bool</span>
= <span class="phpdocumentor-signature__argument__default-value">true</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>Whether to trigger the deprecation or not (true by default)</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetGet#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If accessing this method outside of
<a href="resolve()"></a></p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-NoSuchOptionException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\NoSuchOptionException">NoSuchOptionException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is not set</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-InvalidOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\InvalidOptionsException">InvalidOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option doesn't fulfill the
specified validation rules</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-OptionDefinitionException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\OptionDefinitionException">OptionDefinitionException</abbr></a></span>
<section class="phpdocumentor-description"><p>If there is a cyclic dependency between
lazy options and/or normalizers</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_offsetSet">
offsetSet()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetSet" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1182</span>
</aside>
<p class="phpdocumentor-summary">Not supported.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">offsetSet</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetSet#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_offsetUnset">
offsetUnset()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetUnset" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1192</span>
</aside>
<p class="phpdocumentor-summary">Not supported.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">offsetUnset</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetUnset#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_remove">
remove()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_remove" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">793</span>
</aside>
<p class="phpdocumentor-summary">Removes the option with the given name.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">remove</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$optionNames</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Undefined options are ignored.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$optionNames</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more option names</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_remove#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_resolve">
resolve()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_resolve" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">855</span>
</aside>
<p class="phpdocumentor-summary">Merges options with the default values stored in the container and
validates them.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">resolve</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Exceptions are thrown if:</p>
<ul>
<li>Undefined options are passed;</li>
<li>Required options are missing;</li>
<li>Options have invalid types;</li>
<li>Options have invalid values.</li>
</ul>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$options</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
= <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_resolve#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If an option name is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-InvalidOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\InvalidOptionsException">InvalidOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If an option doesn't fulfill the
specified validation rules</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-MissingOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\MissingOptionsException">MissingOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If a required option is missing</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-OptionDefinitionException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\OptionDefinitionException">OptionDefinitionException</abbr></a></span>
<section class="phpdocumentor-description"><p>If there is a cyclic dependency between
lazy options and/or normalizers</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-NoSuchOptionException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\NoSuchOptionException">NoSuchOptionException</abbr></a></span>
<section class="phpdocumentor-description"><p>If a lazy option reads an unavailable option</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setAllowedTypes">
setAllowedTypes()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedTypes" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">652</span>
</aside>
<p class="phpdocumentor-summary">Sets allowed types for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setAllowedTypes</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$allowedTypes</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Any type for which a corresponding is_<type>() function exists is
acceptable. Additionally, fully-qualified class or interface names may
be passed.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$allowedTypes</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more accepted types</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedTypes#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setAllowedValues">
setAllowedValues()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedValues" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">572</span>
</aside>
<p class="phpdocumentor-summary">Sets allowed values for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setAllowedValues</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$allowedValues</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Instead of passing values, you may also pass a closures with the
following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function ($value) {
// return true or false
}
</code></pre>
<p>The closure receives the value as argument and should return true to
accept the value and false to reject the value.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$allowedValues</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more acceptable values/closures</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setDefault">
setDefault()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefault" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">194</span>
</aside>
<p class="phpdocumentor-summary">Sets the default value of a given option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setDefault</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>If the default value should be set based on other options, you can pass
a closure with the following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function (Options $options) {
// ...
}
</code></pre>
<p>The closure will be evaluated when <a href="resolve()"></a> is called. The
closure has access to the resolved values of other options through the
passed <a href="Options"></a> instance:</p>
<pre class="prettyprint"><code class="prettyprint">function (Options $options) {
if (isset($options['port'])) {
// ...
}
}
</code></pre>
<p>If you want to access the previously set default value, add a second
argument to the closure's signature:</p>
<pre class="prettyprint"><code class="prettyprint">$options-&gt;setDefault('name', 'Default Name');
$options-&gt;setDefault('name', function (Options $options, $previousValue) {
// 'Default Name' === $previousValue
});
</code></pre>
<p>This is mostly useful if the configuration of the <a href="Options"></a> object
is spread across different locations of your code, such as base and
sub-classes.</p>
<p>If you want to define nested options, you can pass a closure with the
following signature:</p>
<pre class="prettyprint"><code class="prettyprint">$options-&gt;setDefault('database', function (OptionsResolver $resolver) {
$resolver-&gt;setDefined(['dbname', 'host', 'port', 'user', 'pass']);
}
</code></pre>
<p>To get access to the parent options, add a second argument to the closure's
signature:</p>
<pre class="prettyprint"><code class="prettyprint">function (OptionsResolver $resolver, Options $parent) {
// 'default' === $parent['connection']
}
</code></pre>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefault#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setDefaults">
setDefaults()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefaults" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">265</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setDefaults</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$defaults</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$defaults</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefaults#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setDefined">
setDefined()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefined" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">365</span>
</aside>
<p class="phpdocumentor-summary">Defines a valid option name.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setDefined</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$optionNames</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Defines an option name without setting a default value. The option will
be accepted when passed to <a href="resolve()"></a>. When not passed, the
option will not be included in the resolved options.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$optionNames</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more option names</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefined#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setDeprecated">
setDeprecated()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDeprecated" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">429</span>
</aside>
<p class="phpdocumentor-summary">Deprecates an option, allowed types or values.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setDeprecated</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$package</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|<abbr title="\Closure">Closure</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$message</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;The option &quot;%name%&quot; is deprecated.&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Instead of passing the message, you may also pass a closure with the
following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function (Options $options, $value): string {
// ...
}
</code></pre>
<p>The closure receives the value as argument and should return a string.
Return an empty string to ignore the option deprecation.</p>
<p>The closure is invoked when <a href="resolve()"></a> is called. The parameter
passed to the closure is the value of the option after validating it
and before normalizing it.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$package</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The name of the composer package that is triggering the deprecation</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$version</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The version of the package that introduced the deprecation</p>
</section>
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$message</span>
: <span class="phpdocumentor-signature__argument__return-type">string|<abbr title="\Closure">Closure</abbr></span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;The option &quot;%name%&quot; is deprecated.&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>The deprecation message to use</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setInfo">
setInfo()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setInfo" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">728</span>
</aside>
<p class="phpdocumentor-summary">Sets an info message for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setInfo</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$info</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$info</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setInfo#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setNormalizer">
setNormalizer()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setNormalizer" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">488</span>
</aside>
<p class="phpdocumentor-summary">Sets the normalizer for an option.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setNormalizer</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$normalizer</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The normalizer should be a closure with the following signature:</p>
<pre class="prettyprint"><code class="prettyprint">function (Options $options, $value) {
// ...
}
</code></pre>
<p>The closure is invoked when <a href="resolve()"></a> is called. The closure
has access to the resolved values of other options through the passed
<a href="Options"></a> instance.</p>
<p>The second parameter passed to the closure is the value of
the option.</p>
<p>The resolved option value is set to the return value of the closure.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$option</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$normalizer</span>
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setNormalizer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-UndefinedOptionsException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException">UndefinedOptionsException</abbr></a></span>
<section class="phpdocumentor-description"><p>If the option is undefined</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setPrototype">
setPrototype()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setPrototype" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">762</span>
</aside>
<p class="phpdocumentor-summary">Marks the whole options definition as array prototype.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setPrototype</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$prototype</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$prototype</span>
: <span class="phpdocumentor-signature__argument__return-type">bool</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setPrototype#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option, a normalizer or a root definition</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setRequired">
setRequired()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setRequired" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">294</span>
</aside>
<p class="phpdocumentor-summary">Marks one or more options as required.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setRequired</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$optionNames</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">$this</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$optionNames</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, string&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>One or more option names</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setRequired#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/Symfony-Component-OptionsResolver-Exception-AccessException.html"><abbr title="\Symfony\Component\OptionsResolver\Exception\AccessException">AccessException</abbr></a></span>
<section class="phpdocumentor-description"><p>If called from a lazy option or normalizer</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">$this</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_formatOptions">
formatOptions()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatOptions" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1272</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">formatOptions</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$options</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_formatValue">
formatValue()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValue" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1222</span>
</aside>
<p class="phpdocumentor-summary">Returns a string representation of the value.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">formatValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This method returns the equivalent PHP tokens for most scalar types
(i.e. &quot;false&quot; for false, &quot;1&quot; for 1 etc.). Strings are always wrapped
in double quotes (&quot;).</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_formatValues">
formatValues()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValues" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1263</span>
</aside>
<p class="phpdocumentor-summary">Returns a string representation of a list of values.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">formatValues</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$values</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Each of the values is converted to a string using
<a href="formatValue()"></a>. The values are then concatenated with commas.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$values</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValues#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\Symfony\Component\OptionsResolver\formatValue()">formatValue()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_getParameterClassName">
getParameterClassName()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getParameterClassName" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1292</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">getParameterClassName</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\ReflectionParameter">ReflectionParameter</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$parameter</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|null</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$parameter</span>
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\ReflectionParameter">ReflectionParameter</abbr></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|null</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_verifyTypes">
verifyTypes()
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_verifyTypes" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="vendor/symfony/options-resolver/OptionsResolver.php"><a href="files/vendor-symfony-options-resolver-optionsresolver.html"><abbr title="vendor/symfony/options-resolver/OptionsResolver.php">OptionsResolver.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1135</span>
</aside>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">verifyTypes</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$invalidTypes</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$level</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">0</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$type</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$value</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$invalidTypes</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$level</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
= <span class="phpdocumentor-signature__argument__default-value">0</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
</section>
<div class="phpdocumentor-modal" id="source-view">
<div class="phpdocumentor-modal-bg" data-exit-button></div>
<div class="phpdocumentor-modal-container">
<div class="phpdocumentor-modal-content">
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/vendor/symfony/options-resolver/OptionsResolver.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
</div>
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
</div>
</div>
<script type="text/javascript">
(function () {
function loadExternalCodeSnippet(el, url, line) {
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
const language = 'php';
const code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
pre.setAttribute('data-line', line)
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
return;
}
if (xhr.status === 404) {
code.textContent = '✖ Error: File could not be found';
return;
}
if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
return;
}
code.textContent = '✖ Error: An unknown error occurred';
};
xhr.send(null);
});
}
const modalButtons = document.querySelectorAll("[data-modal]");
const openedAsLocalFile = window.location.protocol === 'file:';
if (modalButtons.length > 0 && openedAsLocalFile) {
console.warn(
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
'browsers block XHR requests when a page is opened this way'
);
}
modalButtons.forEach(function (trigger) {
if (openedAsLocalFile) {
trigger.setAttribute("hidden", "hidden");
}
trigger.addEventListener("click", function (event) {
event.preventDefault();
const modal = document.getElementById(trigger.dataset.modal);
if (!modal) {
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
return;
}
modal.classList.add("phpdocumentor-modal__open");
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
const exits = modal.querySelectorAll("[data-exit-button]");
exits.forEach(function (exit) {
exit.addEventListener("click", function (event) {
event.preventDefault();
modal.classList.remove("phpdocumentor-modal__open");
});
});
});
});
})();
</script>
</article>
</section>
<section class="phpdocumentor-on-this-page__sidebar">
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-constants">Constants</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-properties">Properties</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#toc-methods">Methods</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Constants</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#constant_VALIDATION_FUNCTIONS">VALIDATION_FUNCTIONS</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedTypes">$allowedTypes<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_allowedValues">$allowedValues<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_calling">$calling<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defaults">$defaults<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_defined">$defined<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_deprecated">$deprecated<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_given">$given<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_info">$info<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_lazy">$lazy<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_locked">$locked<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_nested">$nested<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_normalizers">$normalizers<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_parentsOptions">$parentsOptions<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototype">$prototype<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_prototypeIndex">$prototypeIndex<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_required">$required<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#property_resolved">$resolved<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html"></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedTypes">addAllowedTypes()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addAllowedValues">addAllowedValues()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_addNormalizer">addNormalizer()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_clear">clear()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_count">count()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_define">define()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getDefinedOptions">getDefinedOptions()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getInfo">getInfo()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getMissingOptions">getMissingOptions()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getRequiredOptions">getRequiredOptions()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_hasDefault">hasDefault()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDefined">isDefined()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isDeprecated">isDeprecated()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isMissing">isMissing()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isNested">isNested()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isPrototype">isPrototype()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_isRequired">isRequired()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetExists">offsetExists()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetGet">offsetGet()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetSet">offsetSet()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_offsetUnset">offsetUnset()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_remove">remove()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_resolve">resolve()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedTypes">setAllowedTypes()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setAllowedValues">setAllowedValues()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefault">setDefault()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefaults">setDefaults()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDefined">setDefined()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setDeprecated">setDeprecated()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setInfo">setInfo()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setNormalizer">setNormalizer()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setPrototype">setPrototype()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_setRequired">setRequired()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatOptions">formatOptions()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValue">formatValue()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_formatValues">formatValues()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_getParameterClassName">getParameterClassName()</a></li>
<li><a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#method_verifyTypes">verifyTypes()</a></li>
</ul>
</li>
</ul>
</section>
</section>
</div>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
<header class="phpdocumentor-search-results__header">
<h2 class="phpdocumentor-search-results__title">Search results</h2>
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
</header>
<section class="phpdocumentor-search-results__body">
<ul class="phpdocumentor-search-results__entries"></ul>
</section>
</section>
</section>
</div>
<a href="classes/Symfony-Component-OptionsResolver-OptionsResolver.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
</body>
</html>