PHP Class Neos\Flow\Validation\Validator\AbstractCompositeValidator

Inheritance: implements Neos\Flow\Validation\Validator\ObjectValidatorInterface, implements Countable
Datei anzeigen Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$options array
$supportedOptions array This contains the supported options, their default values and descriptions.
$validatedInstancesContainer SplObjectStorage
$validators SplObjectStorage

Public Methods

Method Description
__construct ( array $options = [] ) Constructs the composite validator and sets validation options
addValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void Adds a new validator to the conjunction.
count ( ) : integer Returns the number of validators contained in this conjunction.
getOptions ( ) : array Returns the options for this validator
getValidators ( ) : SplObjectStorage Returns the child validators of this Composite Validator
removeValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) Removes the specified validator.
setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void Allows to set a container to keep track of validated instances.

Method Details

__construct() public method

Constructs the composite validator and sets validation options
public __construct ( array $options = [] )
$options array Options for the validator

addValidator() public method

Adds a new validator to the conjunction.
public addValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void
$validator Neos\Flow\Validation\Validator\ValidatorInterface The validator that should be added
return void

count() public method

Returns the number of validators contained in this conjunction.
public count ( ) : integer
return integer The number of validators

getOptions() public method

Returns the options for this validator
public getOptions ( ) : array
return array

getValidators() public method

Returns the child validators of this Composite Validator
public getValidators ( ) : SplObjectStorage
return SplObjectStorage

removeValidator() public method

Removes the specified validator.
public removeValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator )
$validator Neos\Flow\Validation\Validator\ValidatorInterface The validator to remove

setValidatedInstancesContainer() public method

Allows to set a container to keep track of validated instances.
public setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void
$validatedInstancesContainer SplObjectStorage A container to keep track of validated instances
return void

Property Details

$options protected_oe property

protected array $options
return array

$supportedOptions protected_oe property

This contains the supported options, their default values and descriptions.
protected array $supportedOptions
return array

$validatedInstancesContainer protected_oe property

protected SplObjectStorage $validatedInstancesContainer
return SplObjectStorage

$validators protected_oe property

protected SplObjectStorage $validators
return SplObjectStorage