public function addValidator(ValidatorInterface $validator)
    {
        if ($validator instanceof ObjectValidatorInterface) {
            $validator->setValidatedInstancesContainer = $this->validatedInstancesContainer;
        }
        $this->validators->attach($validator);
    }
public function addValidator(ValidatorInterface $validator)
    {
        if ($validator instanceof ObjectValidatorInterface) {
            $validator->setValidatedInstancesContainer = $this->validatedInstancesContainer;
        }
        $this->validators->attach($validator);
    }
public function addValidator ( ValidatorInterface $ validator ) { if ( $ validator instanceof ObjectValidatorInterface ) { $ validator -> setValidatedInstancesContainer = $ this -> validatedInstancesContainer ; } $ this -> validators -> attach ( $ validator ) ; }
Adds a new validator to the conjunction.

@param ValidatorInterface $validator The validator that should be added
@return void
@api
Adds a new validator to the conjunction .