OptionsResolver::addAllowedTypes()

OptionsResolver addAllowedTypes(string $option, string|string[] $allowedTypes) Adds allowed types for an option. The types are merged with the allowed types defined previously. Any type for which a corresponding is_() function exists is acceptable. Additionally, fully-qualified class or interface names may be passed. Parameters string $option The option name string|string[] $allowedTypes One or more accepted types Return Value OptionsResolver This instance Exceptions Undefined

OptionsResolver

class OptionsResolver implements Options Validates options and merges them with default values. Methods OptionsResolver setDefault(string $option, mixed $value) Sets the default value of a given option. OptionsResolver setDefaults(array $defaults) Sets a list of default values. bool hasDefault(string $option) Returns whether a default value is set for an option. OptionsResolver setRequired(string|string[] $optionNames) Marks one or more options as required. bool isReq

Options

interface Options implements ArrayAccess, Countable Contains resolved option values.

OptionDefinitionException

class OptionDefinitionException extends LogicException implements ExceptionInterface Thrown when two lazy options have a cyclic dependency.

Optional

class Optional extends Existence Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group CLASS_CONSTRAINT Marks a constraint that can be put onto classes PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties Properties mixed $payload Domain-specific data attached to a constraint from Constraint array $groups The groups that the constraint belongs to from Constraint $constraints from Existence Methods static string g

OperationNotPermitedException deprecated

class OperationNotPermitedException extends AdapterFailureException deprecated since 2.8, to be removed in 3.0. Methods __construct(AdapterInterface $adapter, string|null $message = null, Exception $previous = null) from AdapterFailureException AdapterInterface getAdapter() from AdapterFailureException Details __construct(AdapterInterface $adapter, string|null $message = null, Exception $previous = null) Parameters AdapterInterface $ada

OperationInterface::getResult()

MessageCatalogueInterface getResult() Returns resulting catalogue ('result'). Return Value MessageCatalogueInterface

OperationInterface::getObsoleteMessages()

array getObsoleteMessages(string $domain) Returns obsolete messages ('obsolete') after operation. Parameters string $domain Return Value array

OperationInterface::getNewMessages()

array getNewMessages(string $domain) Returns new messages ('new') after operation. Parameters string $domain Return Value array

OperationInterface::getMessages()

array getMessages(string $domain) Returns all valid messages ('all') after operation. Parameters string $domain Return Value array