Copied!

OptionsValidatorRegistryInterface

OptionsValidatorRegistryInterface.php : 16

Registry for options validators.

Tags
See
OptionsValidatorInterface

Methods

publicgetValidator()

OptionsValidatorRegistryInterface.php : 28

Returns options validator for given type.

public getValidator(string $type) : OptionsValidatorInterface

Parameters

Name Type Default value Description
$type string - -

Return values

OptionsValidatorInterface

Tags
Throws
InvalidArgumentException

If the validator is not found.

publichasValidator()

OptionsValidatorRegistryInterface.php : 21

Checks if options validator for given type exists.

public hasValidator(string $type) : bool

Parameters

Name Type Default value Description
$type string - -

Return values

bool